sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <SttclThread.h>
Public Types | |
typedef void *(* | ThreadMethodPtr )(void *) |
Public Member Functions | |
SttclThread (ThreadMethodPtr argThreadMethod) | |
~SttclThread () | |
bool | run (void *args) |
void | join () |
void | detach () |
Static Public Member Functions | |
static bool | isSelf (const Impl &otherThread) |
Adapter class for a (OS-)specific thread implementation.
Impl | Selects a (OS-)specific thread implementation. |
typedef void*(* sttcl::internal::SttclThread< Impl >::ThreadMethodPtr)(void *) |
Defines the method pointer signature used for the thread method.
Reimplemented in sttcl::ClassMethodThread< T, UserArgs, ThreadImpl, MutexImpl >.
|
inline |
Constructor for class SttclThread.
argThreadMethod | A pointer tor the method that should be executed as thread method. |
|
inline |
Destructor for class SttclThread.
|
inline |
Kills the thread method.
|
inlinestatic |
Returns true
if the other thread reference represents the thread method path, false
otherwise.
otherThread | A thread reference. |
|
inline |
Waits blocking forever until the thread method exits.
Reimplemented in sttcl::ClassMethodThread< T, UserArgs, ThreadImpl, MutexImpl >.
|
inline |
Runs the thread method within a separate thread.
args | Arguments passed to the thread method. |