#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 112 of file WorkerGroup.h.
|
Safely get busy status.
Definition at line 458 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 465 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 472 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 479 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 135 of file WorkerGroup.h. Referenced by SctService::WorkerGroup< T >::Worker::busy(), and SctService::WorkerGroup< T >::Worker::setBusy(). |
|
true if paused
Definition at line 136 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 134 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(). |