Platform independent thread object.
More...
Platform independent thread object.
◆ Start
Starts this thread.
This function creates a new thread which is not detached, so the created thread must be joined by calling Join method.
- Parameters
-
| thread | This thread object. |
- Returns
- This thread has been started successfully or not.
◆ Join
Join this thread.
This function joins this thread and cleans up its resources, including this thread object, so these references must not be used after calling this method. Every thread that been created by this library must be joined by calling this method.
- Parameters
-
| thread | This thread object. |
- Returns
- Thread return value.
◆ IsRunning
This thread is running or not.
- Parameters
-
| thread | This thread object. |
- Returns
- CMTrue if this thread is running, CMFalse if this thread is not running.
◆ GetId
Get the ID of this thread. The returned ID is not the system thread ID, just an internal thread index.
- Parameters
-
| thread | This thread object. |
- Returns
- ID of this thread.
◆ GetName
| const char *(* CMUTIL_Thread::GetName) (const CMUTIL_Thread *thread) |
Get the name of this thread.
- Parameters
-
| thread | This thread object. |
- Returns
- Name of this thread. It belongs to the thread object.
The documentation for this struct was generated from the following file: