Components/Libraries/XF/FreeRTOS/Thread
(Difference between revisions)
Sara.chalokh (Talk | contribs) (→Parameters) |
Sara.chalokh (Talk | contribs) (→Description) |
||
Line 23: | Line 23: | ||
== ~Thread() [virtual] == | == ~Thread() [virtual] == | ||
=== Description === | === Description === | ||
+ | The destructor of the Thread | ||
+ | |||
== void pushEvent(Event* opEv, timeSize oTimeToWait) [virtual] == | == void pushEvent(Event* opEv, timeSize oTimeToWait) [virtual] == | ||
=== Description === | === Description === |
Revision as of 13:26, 21 August 2017
Thread
This class is the basic thread of the XFOS. It manages state machines, dispatch the events and schedule timeouts when an event need it. This class contains an event queue where a put events waiting for process.
Member Attributes
Queue _eventQueue : the event queue of the Thread
TimerManager* _pTimerManager : a pointer to the timer manager
Member Functions Documentation
Thread(TimerManager* opTimerManager, std::string oName, PRIORITY_SIZE oPriority, STACKSIZE_SIZE oStackDepth)
Description
The constructor of the Thread. It create the Thread and initialuîze the event queue.
Parameters
TimerManager* opTimerManager : a pointer to the timer manager
string oName : the name of the thread (basically set as "Event Dispatcher")
PRIORITY_SIZE oPriority : the priority of the thread
STACKSIZE_SIZE oStackDepth : the stack size of the thread (basically set as THREAD_STACK_SIZE)
~Thread() [virtual]
Description
The destructor of the Thread