16 #ifndef TRANSREC_WORKER_THREAD_H 17 #define TRANSREC_WORKER_THREAD_H 22 #include <epicsMutex.h> 23 #include <epicsEvent.h> 24 #include <epicsThread.h> 26 #include "TRNonCopyable.h" 54 private TRNonCopyable,
55 private epicsThreadRunable
97 std::deque<TRWorkerThreadTask *> m_queue;
112 private TRNonCopyable
virtual void runWorkerThreadTask(int id)=0
Called on the helper thread request to execute a request.
void start()
Start the worker thread.
bool start()
Queues the task for execution.
This class is used to execute worker thread tasks.
Definition: TRWorkerThread.h:33
Represents a task submitted to the worker thread.
Definition: TRWorkerThread.h:111
A simple worker thread with a queue of tasks.
Definition: TRWorkerThread.h:53