Monado OpenXR Runtime
pool Struct Reference
Collaboration diagram for pool:

Data Fields

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

Field Documentation

◆ 

struct { ... } pool::available

For worker threads.

Referenced by locked_pool_wake_worker_if_allowed().

◆ initial_worker_limit

uint32_t pool::initial_worker_limit

Given at creation.

◆ mutex

◆ prefix

char pool::prefix[32]

Prefix to use for thread names.

◆ running

bool pool::running

Is the pool up and running?

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

◆ thread_count

size_t pool::thread_count

Number of created threads.

◆ threads

struct thread pool::threads[(16)]

The worker threads.

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

◆ 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: