|
IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
|
#include <ice/task_thread.hxx>
Public Attributes | |
| bool | exclusive_queue = false |
| Consume all tasks from the queue instead of just one from the front. | |
| bool | sort_by_priority = false |
| Enable sorting tasks by priority for this thread if 'exclusive' mode is also set. | |
| bool | wait_on_queue = true |
| When the queue is empty, waits on new tasks to be pushed. | |
| ice::usize | stack_size = 0_B |
| Custom stack size for the thread. | |
| ice::TaskThreadProcedure * | custom_procedure |
| Uses the custom provided procedure to run tasks instead of the built-in implementations. | |
| void * | custom_procedure_userdata |
| User-data associated with the custom procedure (if set). | |
| ice::String | debug_name |
| Sets the name of the thread. | |
| ice::TaskThreadProcedure* ice::TaskThreadInfo::custom_procedure |
Uses the custom provided procedure to run tasks instead of the built-in implementations.
| void* ice::TaskThreadInfo::custom_procedure_userdata |
User-data associated with the custom procedure (if set).
| ice::String ice::TaskThreadInfo::debug_name |
Sets the name of the thread.
| bool ice::TaskThreadInfo::exclusive_queue = false |
Consume all tasks from the queue instead of just one from the front.
| bool ice::TaskThreadInfo::sort_by_priority = false |
Enable sorting tasks by priority for this thread if 'exclusive' mode is also set.
| ice::usize ice::TaskThreadInfo::stack_size = 0_B |
Custom stack size for the thread.
| bool ice::TaskThreadInfo::wait_on_queue = true |
When the queue is empty, waits on new tasks to be pushed.