TwiceAsNice
2019-02-18
|
A thread associated with a private state machine and a private monitor variable. More...
#include <ServiceWorker.h>
Public Member Functions | |
WorkerThread (ServiceWorker *_svc) | |
ServiceStateMachine & | stateMachine () |
Nice::Monitor & | monitor () |
void | wait () |
bool | timedWait (const Nice::Time &_timeout) |
WorkerThread (ServiceWorker *_svc) | |
ServiceStateMachine & | stateMachine () |
Nice::Monitor & | monitor () |
void | wait () |
bool | timedWait (const Nice::Time &_timeout) |
![]() | |
Thread () | |
virtual | ~Thread () |
IceUtil::ThreadControl | start (size_t _stackSize=0, int prio=-1, int schedpolicy=-1, cpu_set_t *mask=0) |
virtual void | terminate () |
virtual bool | terminated () |
virtual void | cancel () |
cancels a thread - this will throw an unknown exception More... | |
virtual void | sleep (const Nice::Time &_t) |
virtual void | yield () |
virtual void | wakeupAt (const Nice::Time &_t) |
Thread () | |
virtual | ~Thread () |
IceUtil::ThreadControl | start (size_t _stackSize=0, int prio=-1, int schedpolicy=-1, cpu_set_t *mask=0) |
virtual void | terminate () |
virtual bool | terminated () |
virtual void | cancel () |
cancels a thread - this will throw an unknown exception More... | |
virtual void | sleep (const Nice::Time &_t) |
virtual void | yield () |
virtual void | wakeupAt (const Nice::Time &_t) |
Protected Member Functions | |
virtual void | run () |
the main ICE servicing loop. Executes a preinit() step and enters a loop that is terminated when the next state becomes SHUTDOWN. More... | |
virtual void | run () |
Protected Attributes | |
ServiceStateMachine | m_stateMachine |
Nice::Monitor | m_monitor |
![]() | |
Nice::Atomic< bool > | m_terminated |
Private Member Functions | |
WorkerThread () | |
WorkerThread () | |
Private Attributes | |
ServiceWorker * | m_svc |
Friends | |
class | BasdardServiceWorker |
Additional Inherited Members | |
![]() | |
enum | STATE { VALID, TERMINATED, CANCELED, VALID, TERMINATED, CANCELED } |
enum | STATE { VALID, TERMINATED, CANCELED, VALID, TERMINATED, CANCELED } |
A thread associated with a private state machine and a private monitor variable.
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
protectedvirtual |
the main ICE servicing loop. Executes a preinit() step and enters a loop that is terminated when the next state becomes SHUTDOWN.
|
protectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from Nice::Thread.
|
inlinevirtual |
Reimplemented from Nice::Thread.
|
friend |
|
protected |
|
protected |
|
private |