TwiceAsNice
2019-02-18
|
Base class for threads, supplies a terminate function,. More...
#include <Thread.h>
Public Member Functions | |
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 | wait () |
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 | wait () |
virtual void | sleep (const Nice::Time &_t) |
virtual void | yield () |
virtual void | wakeupAt (const Nice::Time &_t) |
Protected Types | |
enum | STATE { VALID, TERMINATED, CANCELED, VALID, TERMINATED, CANCELED } |
enum | STATE { VALID, TERMINATED, CANCELED, VALID, TERMINATED, CANCELED } |
Protected Attributes | |
Nice::Atomic< bool > | m_terminated |
Base class for threads, supplies a terminate function,.
|
protected |
|
protected |
Nice::Thread::Thread | ( | ) |
|
virtual |
Nice::Thread::Thread | ( | ) |
|
virtual |
|
inlinevirtual |
cancels a thread - this will throw an unknown exception
Please note, that you have to put a 'if(m_terminated) throw;' in the catch (...) block!
|
inlinevirtual |
cancels a thread - this will throw an unknown exception
Please note, that you have to put a 'if(m_terminated) throw;' in the catch (...) block!
|
inlinevirtual |
|
inlinevirtual |
IceUtil::ThreadControl Nice::Thread::start | ( | size_t | _stackSize = 0 , |
int | prio = -1 , |
||
int | schedpolicy = -1 , |
||
cpu_set_t * | mask = 0 |
||
) |
IceUtil::ThreadControl Nice::Thread::start | ( | size_t | _stackSize = 0 , |
int | prio = -1 , |
||
int | schedpolicy = -1 , |
||
cpu_set_t * | mask = 0 |
||
) |
|
inlinevirtual |
Reimplemented in ServiceThread, FuncThread2, PlayThread, Nice::AppLogger::ReaderThread, Nice::CmdThread, Nice::CmdThread, Nice::AppLogger::ReaderThread, Nice::CmdThread, Nice::CmdThread, Basda::AvtVinoDevice< Type >::RingbufferWorker, Basda::AvtVinoDevice< Type >::RingbufferWorker, FuncThread, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, FuncThread, Nice::PlayThread, Nice::AppHeartbeatThread, Nice::AppHeartbeatThread, ChatThread, and ChatThread.
|
inlinevirtual |
Reimplemented in ServiceThread, FuncThread2, PlayThread, Nice::AppLogger::ReaderThread, Nice::CmdThread, Nice::CmdThread, Nice::AppLogger::ReaderThread, Nice::CmdThread, Nice::CmdThread, Basda::AvtVinoDevice< Type >::RingbufferWorker, Basda::AvtVinoDevice< Type >::RingbufferWorker, FuncThread, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, Basda::VinoRingbufferWorker< Type, RingBufferDataType >, FuncThread, Nice::PlayThread, Nice::AppHeartbeatThread, Nice::AppHeartbeatThread, ChatThread, and ChatThread.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented in Basda::ServiceWorker::WorkerThread, and Basda::ServiceWorker::WorkerThread.
|
virtual |
Reimplemented in Basda::ServiceWorker::WorkerThread, and Basda::ServiceWorker::WorkerThread.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
protected |