|
Monado OpenXR Runtime
|

Data Fields | ||
| struct u_worker_thread_pool | base | |
| struct os_mutex | mutex | |
| Big contenious mutex. | ||
| struct task | tasks [(64)] | |
| Array of tasks. | ||
| size_t | tasks_in_array_count | |
| Number of tasks in array. | ||
| struct { | ||
| size_t count | ||
| struct os_cond cond | ||
| } | available | |
| For worker threads. | ||
| uint32_t | initial_worker_limit | |
| Given at creation. | ||
| uint32_t | worker_limit | |
| Currently the number of works that can work, waiting increases this. | ||
| size_t | working_count | |
| Number of threads working on tasks. | ||
| size_t | thread_count | |
| Number of created threads. | ||
| struct thread | threads [(16)] | |
| The worker threads. | ||
| bool | running | |
| Is the pool up and running? | ||
| char | prefix [32] | |
| Prefix to use for thread names. | ||
| struct { ... } pool::available |
For worker threads.
Referenced by locked_pool_wake_worker_if_allowed(), u_worker_group_push(), u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().
| uint32_t pool::initial_worker_limit |
Given at creation.
Referenced by u_worker_thread_pool_create().
| struct os_mutex pool::mutex |
| char pool::prefix[32] |
Prefix to use for thread names.
Referenced by u_worker_thread_pool_create().
| bool pool::running |
Is the pool up and running?
Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().
| struct task pool::tasks[(64)] |
Array of tasks.
| size_t pool::tasks_in_array_count |
Number of tasks in array.
Referenced by locked_pool_wake_worker_if_allowed(), and u_worker_group_push().
| size_t pool::thread_count |
Number of created threads.
Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().
| struct thread pool::threads[(16)] |
The worker threads.
Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().
| uint32_t pool::worker_limit |
Currently the number of works that can work, waiting increases this.
Referenced by locked_pool_wake_worker_if_allowed(), and u_worker_thread_pool_create().
| size_t pool::working_count |
Number of threads working on tasks.
Referenced by locked_pool_wake_worker_if_allowed().