#include <State.h>
Public Types | |
enum | STATE |
Various states. | |
Public Member Functions | |
State (STATE initialState) | |
bool | isIdle () const |
bool | isJoined () const |
bool | isRunning () const |
bool | isReference () const |
bool | setIdle () |
bool | setRunning () |
bool | setReference () |
bool | setJoined () |
bool ZThread::State::isIdle | ( | ) | const [inline] |
Test for the IDLE state. No task has yet run.
bool ZThread::State::isJoined | ( | ) | const [inline] |
Test for the JOINED state. A task has completed and the thread is join()ed.
bool ZThread::State::isReference | ( | ) | const [inline] |
Test for the REFERENCE state. A task is in progress but not under control of this library.
bool ZThread::State::isRunning | ( | ) | const [inline] |
Test for the RUNNING state. A task is in progress.
bool ZThread::State::setIdle | ( | ) | [inline] |
Transition to the IDLE state.
bool ZThread::State::setJoined | ( | ) | [inline] |
Transition to the JOINED state.
bool ZThread::State::setReference | ( | ) | [inline] |
Transition to the REFERENCE state.
bool ZThread::State::setRunning | ( | ) | [inline] |
Transition to the RUNNING state.