Symbolizes a thread. Base block to submit off-thread nkTasks::Task in this component.
More...
Symbolizes a thread. Base block to submit off-thread nkTasks::Task in this component.
◆ Thread()
nkTasks::Thread::Thread |
( |
| ) |
|
|
noexcept |
◆ ~Thread()
nkTasks::Thread::~Thread |
( |
| ) |
|
◆ getCurrentlyWaiting()
bool nkTasks::Thread::getCurrentlyWaiting |
( |
| ) |
const |
- Returns
- Whether the thread is currently waiting for work (true) or not (false).
◆ addTask()
Submits a task to the thread.
- Parameters
-
◆ run()
void nkTasks::Thread::run |
( |
| ) |
|
Starts the thread. Has to be called for the thread to create its context and run.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsTasks/Threads/Thread.h