fatalmind::Thread Class Reference

#include <Thread.hh>

Inherited by fatalmind::TaskRunner.

List of all members.


Detailed Description

A representation of a Thread.

A Thread can execute a single Task, when the Task has finished, the thread will terminate.

If you need to run multiple tasks and don't want to create multiple Threads for that you can use a TaskRunner or TaskRunnerPool.

Public Member Functions

template<class D>
void start (std::auto_ptr< D > a)
template<class D>
void start (gc_ptr< D, MultiThreadedModel<> > a)
void start (std::auto_ptr< Task >)
void start (gc_ptr< Task, MultiThreadedModel<> >)
void detach ()
void join ()
const std::string & getThreadID () const

Static Public Member Functions

static void yield ()
static std::ostream & printSelf (std::ostream &)

Protected Member Functions

void start (Task *)

Static Protected Member Functions

static void * jumpinpoint (void *arg)

Protected Attributes

CommonPtr< Task,
MultiThreadedModel<> > 
d_task
bool d_started
pthread_t d_threadid
std::string d_strthreadid

Friends

std::ostream & operator<< (std::ostream &, const Thread &)


The documentation for this class was generated from the following files:
Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3