This collection of functions provides a set of utilities for managing multi-threaded tasks, including initiation, completion checks and clearing.
Powered by libpthread
◆ InitiateTask()
Starts a background task in a new thread.
- Parameters
-
| function | The function to initiate the task with. |
- Returns
- The initiated task Unique ID.
◆ IsTaskComplete()
| bool IsTaskComplete |
( |
TaskID | taskID | ) |
|
Checks if a task is complete and finished.
- Parameters
-
| taskID | The Unique ID of the task to check. |
- Returns
true if the task is complete, false otherwise.
◆ ClearTask()
| void ClearTask |
( |
TaskID | taskID | ) |
|
Clears a completed task and shutdowns the thread.
- Parameters
-
| taskID | The Unique ID of the task to clear. |