Implements processing the message queue in a separate thread. More...
Public Types | |
typedef icl_core::Queue < LogMessage > | MessageQueue |
Public Member Functions | |
virtual void | run () |
WorkerThread (LogOutputStream *output_stream, icl_core::ThreadPriority priority) | |
~WorkerThread () | |
Public Attributes | |
Semaphore * | m_fill_count |
MessageQueue | m_message_queue |
Semaphore * | m_mutex |
LogOutputStream * | m_output_stream |
Implements processing the message queue in a separate thread.
Definition at line 272 of file LogOutputStream.h.
Definition at line 298 of file LogOutputStream.h.
icl_core::logging::LogOutputStream::WorkerThread::WorkerThread | ( | LogOutputStream * | output_stream, |
icl_core::ThreadPriority | priority | ||
) |
Definition at line 531 of file LogOutputStream.cpp.
Definition at line 540 of file LogOutputStream.cpp.
void icl_core::logging::LogOutputStream::WorkerThread::run | ( | ) | [virtual] |
This is the function running in the thread. This has to be reimplemented from derived classes. If you start the thread by calling Start() this function is executed in the thread. If you call don't want that function to be executed in the thread you could call it directly in your derived class.
Implements icl_core::logging::Thread.
Definition at line 549 of file LogOutputStream.cpp.
Definition at line 303 of file LogOutputStream.h.
Definition at line 299 of file LogOutputStream.h.
Definition at line 302 of file LogOutputStream.h.
Definition at line 290 of file LogOutputStream.h.