|
Transient Recorder Framework
|
A simple worker thread with a queue of tasks. More...
#include <TRWorkerThread.h>
Public Member Functions | |
| TRWorkerThread (std::string const &thread_name) | |
| Constructor for the worker thread. More... | |
| ~TRWorkerThread () | |
| Destructor for the worker thread. More... | |
| void | start () |
| Start the worker thread. More... | |
| void | stop () |
| Send a signal to the worker thread and wait for it stop. | |
Friends | |
| class | TRWorkerThreadTask |
A simple worker thread with a queue of tasks.
Implements a worker thread to which arbitrary tasks can be queued for execution.
| TRWorkerThread::TRWorkerThread | ( | std::string const & | thread_name | ) |
Constructor for the worker thread.
After construction, start should be called to start operation.
| thread_name | The name for the thread. |
| TRWorkerThread::~TRWorkerThread | ( | ) |
| void TRWorkerThread::start | ( | ) |
Start the worker thread.
This should be called once after construction and must not be called again.
1.8.11