Fermat
Public Methods | List of all members
cugar::Thread< DerivedThreadType > Class Template Reference

Detailed description

template<typename DerivedThreadType>
class cugar::Thread< DerivedThreadType >

A thread class, which is meant to be derived from to construct user-defined threads

Template Parameters
DerivedThreadTypethe derived thread class, which must implement a single method:
// run the user-defined thread
void run();

e.g.

struct MyThread : public Thread<MyThread>
{
void run()
{
// do something
...
}
}

#include <threads.h>

Inheritance diagram for cugar::Thread< DerivedThreadType >:
cugar::ThreadBase

Public Methods

void create ()
 create the thread
 
void join ()
 join the thread
 
- Public Methods inherited from cugar::ThreadBase
void set_id (const uint32 id)
 
uint32 get_id () const
 
CUGAR_API void create (void *(*func)(void *), void *arg)
 create the thread
 
CUGAR_API void join ()
 join the thread
 

The documentation for this class was generated from the following file: