Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ThreadedMessageQueue< T >::ReceiverThread< F, C > Class Template Reference

Pulls messages out of the queue and gives them to the specified callback. More...

#include <ThreadedMessageQueue.h>

Inheritance diagram for ThreadedMessageQueue< T >::ReceiverThread< F, C >:

Detailed Description

template<class T>
template<typename F, class C>
class ThreadedMessageQueue< T >::ReceiverThread< F, C >

Pulls messages out of the queue and gives them to the specified callback.

Definition at line 125 of file ThreadedMessageQueue.h.

List of all members.

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

ThreadedMessageQueueq
 the queue being monitored
fn
 function pointer
C & cl
 class pointer

Constructor & Destructor Documentation

template<class T>
template<typename F , class C >
ThreadedMessageQueue< T >::ReceiverThread< F, C >::ReceiverThread ( ThreadedMessageQueue< T > &  tmq,
f,
C &  c 
)

constructor

Definition at line 128 of file ThreadedMessageQueue.h.


Member Function Documentation

template<class T>
template<typename F , class C >
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.


Member Data Documentation

template<class T>
template<typename F , class C >
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().

template<class T>
template<typename F , class C >
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().

template<class T>
template<typename F , class C >
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().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3