Dispatches the contained operations periodically. More...
#include <PeriodicDispatchThread.h>

Public Member Functions | |
| void | addOperation (Operation *op) |
| Add the operation op to the dispatch queue. | |
| PeriodicDispatchThread (icl_core::String const &description, icl_core::TimeSpan const &period, ThreadPriority priority=0) | |
| virtual | ~PeriodicDispatchThread () |
| Destroys a periodic dispatch thread. | |
Private Member Functions | |
| virtual void | run () |
| Perform the periodic dispatching. | |
Private Attributes | |
| icl_core::List< Operation * > | m_dispatch_queue |
Dispatches the contained operations periodically.
Definition at line 36 of file PeriodicDispatchThread.h.
| icl_core::dispatch::PeriodicDispatchThread::PeriodicDispatchThread | ( | icl_core::String const & | description, |
| icl_core::TimeSpan const & | period, | ||
| ThreadPriority | priority = 0 |
||
| ) |
Initializes a periodic dispatch thread.
| description | The thread's description. |
| period | The relative period after which the thread is cyclically woken up. |
| priority | The thread's priority. |
Definition at line 32 of file PeriodicDispatchThread.cpp.
Destroys a periodic dispatch thread.
Definition at line 39 of file PeriodicDispatchThread.cpp.
Add the operation op to the dispatch queue.
Definition at line 45 of file PeriodicDispatchThread.cpp.
| void icl_core::dispatch::PeriodicDispatchThread::run | ( | ) | [private, virtual] |
Perform the periodic dispatching.
Implements icl_core::thread::Thread.
Definition at line 50 of file PeriodicDispatchThread.cpp.
Definition at line 58 of file PeriodicDispatchThread.h.