Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ThreadedMessageQueue< T >::ReceiverThread< F, C > Class Template ReferencePulls messages out of the queue and gives them to the specified callback. More...
Inheritance diagram for ThreadedMessageQueue< T >::ReceiverThread< F, C >:
Detailed Descriptiontemplate<class T>
|
Public Member Functions | |
ReceiverThread (ThreadedMessageQueue< T > &tmq, F f, C &c) | |
constructor | |
Protected Member Functions | |
virtual void * | run () |
called by launch() once the thread has been set up; when this returns, the thread ends, see runloop() | |
Protected Attributes | |
ThreadedMessageQueue & | q |
the queue being monitored | |
F | fn |
function pointer | |
C & | cl |
class pointer |
ThreadedMessageQueue< T >::ReceiverThread< F, C >::ReceiverThread | ( | ThreadedMessageQueue< T > & | tmq, | |
F | f, | |||
C & | c | |||
) |
constructor
Definition at line 128 of file ThreadedMessageQueue.h.
virtual void* ThreadedMessageQueue< T >::ReceiverThread< F, C >::run | ( | ) | [protected, virtual] |
called by launch() once the thread has been set up; when this returns, the thread ends, see runloop()
Default implementation repeatedly calls runloop(), usleep(), and testCancel(). If you override, you should also be sure to call testCancel occasionally in order to support stop() If function returns a value, that value overrides returnValue. If cancel occurs, returnValue is used.
Reimplemented from Thread.
Definition at line 135 of file ThreadedMessageQueue.h.
C& ThreadedMessageQueue< T >::ReceiverThread< F, C >::cl [protected] |
class pointer
Definition at line 133 of file ThreadedMessageQueue.h.
Referenced by ThreadedMessageQueue< T >::ReceiverThread< F, C >::run().
F ThreadedMessageQueue< T >::ReceiverThread< F, C >::fn [protected] |
function pointer
Definition at line 132 of file ThreadedMessageQueue.h.
Referenced by ThreadedMessageQueue< T >::ReceiverThread< F, C >::run().
ThreadedMessageQueue& ThreadedMessageQueue< T >::ReceiverThread< F, C >::q [protected] |
the queue being monitored
Definition at line 131 of file ThreadedMessageQueue.h.
Referenced by ThreadedMessageQueue< T >::ReceiverThread< F, C >::run().
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3 |