![]() |
Faro Engine 0.0.0.b519570 (main)
|
Abstract interface of a thread. More...
#include <Thread.hpp>
Public Member Functions | |
| virtual | ~IThreadInterface ()=default |
| void | AddTask (ThreadTask task) |
| Schedule the supplied task to be executed ont this thread. | |
| virtual String | GetThreadId ()=0 |
Protected Member Functions | |
| virtual void | ThreadInit ()=0 |
| Executed while starting the thread. | |
| virtual void | ThreadUpdate ()=0 |
| Executed while the thread is active. | |
| virtual void | ThreadDestroy ()=0 |
| Executed when the thread is being stopped. | |
| void | RunTasks () |
| Executed any pending tasks. | |
| void | RegisterThread () |
| void | UnregisterThread () |
Abstract interface of a thread.
|
virtualdefault |
| void Faro::IThreadInterface::AddTask | ( | ThreadTask | task | ) |
Schedule the supplied task to be executed ont this thread.
| task | Task function to execute |
|
pure virtual |
Implemented in Faro::MainThread, and Faro::IThread.
|
protected |
|
protected |
Executed any pending tasks.
|
protectedpure virtual |
Executed when the thread is being stopped.
Implemented in Faro::MainThread.
|
protectedpure virtual |
Executed while starting the thread.
Implemented in Faro::MainThread.
|
protectedpure virtual |
Executed while the thread is active.
Implemented in Faro::MainThread.
|
protected |