Scale Stack 0.3 Developer Documentation

scalestack::threading::thread_provider Class Reference

#include <thread.h>

Inheritance diagram for scalestack::threading::thread_provider:
scalestack::threading::pthreads::thread_provider

Public Member Functions

 thread_provider (kernel::module &module, thread &thread)
virtual ~thread_provider ()
virtual void start (void)=0
virtual void stop (void)=0
virtual size_t get_id (void)=0
virtual void run (void)

Protected Attributes

kernel::module_module

Private Member Functions

 thread_provider (const thread_provider &)
thread_provideroperator= (const thread_provider &)

Private Attributes

thread_thread

Detailed Description

This is a base class that thread provider modules must implement. Everytime a thread instance is created, one of these is created with it to provide the functionality.

Definition at line 111 of file thread.h.


Constructor & Destructor Documentation

scalestack::threading::thread_provider::thread_provider ( kernel::module module,
thread thread 
) [inline]

Reimplemented in scalestack::threading::pthreads::thread_provider.

Definition at line 192 of file thread.h.

scalestack::threading::thread_provider::~thread_provider (  )  [inline, virtual]

Definition at line 198 of file thread.h.

scalestack::threading::thread_provider::thread_provider ( const thread_provider  )  [private]

Don't allow copying of objects.


Member Function Documentation

virtual void scalestack::threading::thread_provider::start ( void   )  [pure virtual]
virtual void scalestack::threading::thread_provider::stop ( void   )  [pure virtual]
virtual size_t scalestack::threading::thread_provider::get_id ( void   )  [pure virtual]
void scalestack::threading::thread_provider::run ( void   )  [inline, virtual]

See thread::run().

Definition at line 202 of file thread.h.

thread_provider& scalestack::threading::thread_provider::operator= ( const thread_provider  )  [private]

Don't allow assignment of objects.


Field Documentation

Definition at line 141 of file thread.h.

Definition at line 155 of file thread.h.


The documentation for this class was generated from the following file:
Generated on Thu Feb 17 13:10:23 2011 by  doxygen 1.6.3