#include <WorkerGroup.h>
Collaboration diagram for SctService::WorkerGroup< T >::Worker:

Public Member Functions | |
| Worker (WorkerGroup< DataType > &group) | |
| Worker (const Worker &w) | |
| void | operator() () |
| bool | busy () |
| Safely get busy status. | |
| bool | paused () |
| Safely get paused status. | |
| void | setBusy (bool v) |
| Safely set busy status. | |
| void | setPaused (bool v) |
| Safely set paused status. | |
Data Fields | |
| WorkerGroup< DataType > & | group |
Private Attributes | |
| boost::mutex | m_statusMutex |
| permits status to be locked | |
| volatile bool | m_busy |
| true when actively working | |
| volatile bool | m_paused |
| true if paused | |
Definition at line 101 of file WorkerGroup.h.
|
|||||||||
|
Safely get busy status.
Definition at line 418 of file WorkerGroup.h. References SctService::WorkerGroup< T >::Worker::m_busy, and SctService::WorkerGroup< T >::Worker::m_statusMutex. |
|
|||||||||
|
Safely get paused status.
Definition at line 425 of file WorkerGroup.h. References SctService::WorkerGroup< T >::Worker::m_paused, and SctService::WorkerGroup< T >::Worker::m_statusMutex. |
|
||||||||||
|
Safely set busy status.
Definition at line 432 of file WorkerGroup.h. References SctService::WorkerGroup< T >::Worker::m_busy, and SctService::WorkerGroup< T >::Worker::m_statusMutex. Referenced by SctService::WorkerGroup< T >::popAndWork(). |
|
||||||||||
|
Safely set paused status.
Definition at line 439 of file WorkerGroup.h. References SctService::WorkerGroup< T >::Worker::m_paused, and SctService::WorkerGroup< T >::Worker::m_statusMutex. |
|
|||||
|
true when actively working
Definition at line 124 of file WorkerGroup.h. Referenced by SctService::WorkerGroup< T >::Worker::busy(), and SctService::WorkerGroup< T >::Worker::setBusy(). |
|
|||||
|
true if paused
Definition at line 125 of file WorkerGroup.h. Referenced by SctService::WorkerGroup< T >::Worker::paused(), and SctService::WorkerGroup< T >::Worker::setPaused(). |
|
|||||
|
permits status to be locked
Definition at line 123 of file WorkerGroup.h. Referenced by SctService::WorkerGroup< T >::Worker::busy(), SctService::WorkerGroup< T >::Worker::paused(), SctService::WorkerGroup< T >::Worker::setBusy(), and SctService::WorkerGroup< T >::Worker::setPaused(). |
1.3.5