|
sttcl
v0.9c
STTCL C++ template state machine framework
|
#include <ClassMethodThread.h>


Classes | |
| struct | RunArgs |
Public Types | |
| typedef void *(T::* | ThreadMethodPtr )(UserArgs *) |
Public Types inherited from sttcl::internal::SttclThread< ThreadImpl > | |
Public Member Functions | |
| ClassMethodThread (T *argInstance, ThreadMethodPtr argThreadMethod) | |
| virtual | ~ClassMethodThread () |
| bool | run (UserArgs *userArgs=0) |
| bool | isRunning () |
| void | join () |
Public Member Functions inherited from sttcl::internal::SttclThread< ThreadImpl > | |
| SttclThread (ThreadMethodPtr argThreadMethod) | |
| ~SttclThread () | |
| bool | run (void *args) |
| void | detach () |
Additional Inherited Members | |
Static Public Member Functions inherited from sttcl::internal::SttclThread< ThreadImpl > | |
| static bool | isSelf (const ThreadImpl &otherThread) |
Represents a thread running a class member method of T.
| T | The class providing the thread method. |
| UserArgs | The optional user arguments type passed to the thread method, the default is void. |
| The | optional thread class implementation, the default is STTCL_DEFAULT_THREADIMPL. |
| typedef void*(T::* sttcl::ClassMethodThread< T, UserArgs, ThreadImpl, MutexImpl >::ThreadMethodPtr)(UserArgs *) |
Defines the method pointer signature used for the thread method.
Reimplemented from sttcl::internal::SttclThread< ThreadImpl >.
|
inline |
Constructor for the ClassMethodThread class.
| argInstance | The instance providing the thread method. |
| argThreadMethod | A function pointer for the thread method. |
|
inlinevirtual |
Destructor for the ClassMethodThread class.
|
inline |
|
inline |
Waits blocking forever until the thread method exits.
Reimplemented from sttcl::internal::SttclThread< ThreadImpl >.
|
inline |
Runs the thread method within a separate thread.
| userArgs | Arguments passed to the thread method. |