Scale Stack 0.3 Developer Documentation

scalestack::threading::service Class Reference

#include <service.h>

Inheritance diagram for scalestack::threading::service:
scalestack::kernel::service scalestack::threading::pthreads::service

Public Member Functions

 service (kernel::module &module)
virtual ~service ()

Private Member Functions

 service (const service &)
serviceoperator= (const service &)
virtual mutex_provider_add_mutex (mutex &mutex)=0
virtual thread_provider_add_thread (thread &thread)=0

Friends

class mutex
class thread

Detailed Description

This is a base class that threading providers must implement in order to provide a threading service.

Definition at line 43 of file service.h.


Constructor & Destructor Documentation

scalestack::threading::service::service ( kernel::module module  )  [inline]

Constructor for threading service.

Parameters:
[in] module Module that the service is associated with.

Reimplemented from scalestack::kernel::service.

Reimplemented in scalestack::threading::pthreads::service.

Definition at line 92 of file service.h.

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

Reimplemented from scalestack::kernel::service.

Definition at line 97 of file service.h.

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

Don't allow copying of objects.


Member Function Documentation

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

Don't allow assignment of objects.

virtual mutex_provider* scalestack::threading::service::_add_mutex ( mutex mutex  )  [private, pure virtual]

Add a mutex to the threading service.

Parameters:
[in] mutex Mutex to add.
Returns:
Mutex provider to use with the mutex.

Implemented in scalestack::threading::pthreads::service.

virtual thread_provider* scalestack::threading::service::_add_thread ( thread thread  )  [private, pure virtual]

Add a thread to the threading service.

Parameters:
[in] thread Thread to add.
Returns:
Thread provider to use with the thread.

Implemented in scalestack::threading::pthreads::service.


Friends And Related Function Documentation

friend class mutex [friend]

Definition at line 84 of file service.h.

friend class thread [friend]

Definition at line 85 of file service.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