Struct dp_pool¶
dp_pool_t's fields; all internal.
#include <dp_parallel.h>
Public Attributes¶
| Type | Name |
|---|---|
| int | busy |
| dp_cond_t | done |
| unsigned long | gen |
| int | helpers |
| dp_mutex_t | mu |
| int | stop |
| dp_thread_t * | th |
| dp_cond_t | wake |
| dp_pf_shared_t | work |
Public Attributes Documentation¶
variable busy¶
helpers still draining the current run
variable done¶
the caller waits here for the run's end
variable gen¶
bumped per run; helpers wake on a change
variable helpers¶
helper threads actually running
variable mu¶
guards every field below except work.next
variable stop¶
set by dp_pool_destroy(): helpers exit
variable th¶
helper thread handles (max_threads - 1 slots; the first helpers are live)
variable wake¶
helpers wait here between runs
variable work¶
the current run's range, body and cursor
The documentation for this class was generated from the following file native/inc/doppler/dp_parallel.h