#include <cThreadLock.h>
Query the status/state of a thread/job and possibly attempt to cancel it. Similar to ICancellable and useful with IStreamProgressCallback
◆ cThreadState()
Gray::cThreadState::cThreadState |
( |
| ) |
|
|
inlinenoexcept |
◆ isThreadRunning()
bool Gray::cThreadState::isThreadRunning |
( |
| ) |
const |
|
inlinenoexcept |
Running. though may be stopping/sleeping/suspended/etc.
◆ isThreadStopping()
bool Gray::cThreadState::isThreadStopping |
( |
| ) |
const |
|
inlinenoexcept |
Thread MUST periodically check this !
◆ RequestStopThread()
virtual bool Gray::cThreadState::RequestStopThread |
( |
bool |
bWillWait = false | ) |
|
|
inlinevirtualnoexcept |
◆ m_bThreadRunning
bool Gray::cThreadState::m_bThreadRunning |
|
protected |
called CreateThread() onThreadCreate(), and inside Run(), until onThreadExit()
◆ m_bThreadStopping
volatile bool Gray::cThreadState::m_bThreadStopping |
|
protected |
trying to stop the thread nicely. Do this before TerminateThread()
The documentation for this class was generated from the following file: