sttcl  v0.9c
STTCL C++ template state machine framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sttcl::internal::ThreadFunctionHelper Struct Reference

#include <ActiveState.h>

List of all members.

Static Public Member Functions

template<class StateImpl , class StateMachineImpl , class IState , class StateThreadType , class TimeDurationType , class EndDoActionSemaphoreType , class ActiveStateMutexType >
static void * stateThreadMethod (void *args)

Detailed Description

Helper class to call a state thread method.


Member Function Documentation

template<class StateImpl , class StateMachineImpl , class IState , class StateThreadType , class TimeDurationType , class EndDoActionSemaphoreType , class ActiveStateMutexType >
static void* sttcl::internal::ThreadFunctionHelper::stateThreadMethod ( void *  args)
inlinestatic

Defines a static method that can be passed to a thread implementation.

Template Parameters:
StateImplThe sttcl::ActiveState<> implementation class.
StateMachineImplThe sttcl::StateMachine<> implementation class that contains the sttcl::ActiveState<> implementation.
IStateThe inner event handler interface of the sttcl::StateMachine<> implementation
StateThreadTypeThe thread implementation class, default is sttcl::internal::SttclThread<>.
EndDoActionSemaphoreTypeThe semaphore implementation class, default is sttcl::internal::SttclSemaphore<>.
TimeDurationTypeThe time duration representation implementation class, default is sttcl::TimeDuration<>.
ActiveStateMutexTypeThe mutex implementation class, default is sttcl::internal::SttclMutex<>.
Parameters:
argsA pointer to the thread args. Implicitely args is casted to sttcl::ActiveState and the sttcl::ActiveState::doAction method is called.

The documentation for this struct was generated from the following file: