libsir 2.2.5
Standard Incident Reporter
Loading...
Searching...
No Matches
sir_threadpool Struct Reference

Thread pool/job queue data container. More...

Data Fields

sir_thread * threads
 A list of thread handles.
 
size_t num_threads
 The number of threads in the pool.
 
sir_queuejobs
 A queue of jobs to run (FIFO).
 
sir_condition cond
 A condition which indicates that a job is ready.
 
sir_mutex mutex
 A mutex to be paired with the condition variable.
 
bool cancel
 Causes threads in the pool to exit when true.
 

Detailed Description

Thread pool/job queue data container.

Field Documentation

◆ cancel

bool sir_threadpool::cancel

Causes threads in the pool to exit when true.

◆ cond

sir_condition sir_threadpool::cond

A condition which indicates that a job is ready.

◆ jobs

sir_queue* sir_threadpool::jobs

A queue of jobs to run (FIFO).

◆ mutex

sir_mutex sir_threadpool::mutex

A mutex to be paired with the condition variable.

◆ num_threads

size_t sir_threadpool::num_threads

The number of threads in the pool.

◆ threads

sir_thread* sir_threadpool::threads

A list of thread handles.


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