Monado OpenXR Runtime
Loading...
Searching...
No Matches
pool Struct Reference
Collaboration diagram for pool:

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.
 

Field Documentation

◆ [struct]

struct { ... } pool::available

◆ initial_worker_limit

uint32_t pool::initial_worker_limit

Given at creation.

Referenced by u_worker_thread_pool_create().

◆ mutex

◆ prefix

char pool::prefix[32]

Prefix to use for thread names.

Referenced by u_worker_thread_pool_create().

◆ running

bool pool::running

Is the pool up and running?

Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().

◆ tasks

struct task pool::tasks[(64)]

Array of tasks.

◆ tasks_in_array_count

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().

◆ thread_count

size_t pool::thread_count

Number of created threads.

Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().

◆ threads

struct thread pool::threads[(16)]

The worker threads.

Referenced by u_worker_thread_pool_create(), and u_worker_thread_pool_destroy().

◆ worker_limit

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().

◆ working_count

size_t pool::working_count

Number of threads working on tasks.

Referenced by locked_pool_wake_worker_if_allowed().


The documentation for this struct was generated from the following file: