Operating system thread.
More...
#include </home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Core/Thread.h>
|
|
| Thread () |
| | Construct. Does not start the thread yet.
|
| |
|
virtual | ~Thread () |
| | Destruct. If running, stop and wait for thread to finish.
|
| |
|
virtual void | ThreadFunction ()=0 |
| | The function to run in the thread.
|
| |
|
bool | Run () |
| | Start running the thread. Return true if successful, or false if already running or if can not create the thread.
|
| |
|
void | Stop () |
| | Set the running flag to false and wait for the thread to finish.
|
| |
|
void | SetPriority (int priority) |
| | Set thread priority. The thread must have been started first.
|
| |
|
bool | IsStarted () const |
| | Return whether thread exists.
|
| |
◆ GetCurrentThreadID()
| ThreadID Dviglo::Thread::GetCurrentThreadID |
( |
| ) |
|
|
static |
Return the current thread's ID.
The documentation for this class was generated from the following files:
- /home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Core/Thread.h
- /home/runner/work/Dviglo/Dviglo/DvigloRepository/Source/Urho3D/Core/Thread.cpp