Skip to content

Struct dp_pool

ClassList > 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

int dp_pool::busy;

helpers still draining the current run


variable done

dp_cond_t dp_pool::done;

the caller waits here for the run's end


variable gen

unsigned long dp_pool::gen;

bumped per run; helpers wake on a change


variable helpers

int dp_pool::helpers;

helper threads actually running


variable mu

dp_mutex_t dp_pool::mu;

guards every field below except work.next


variable stop

int dp_pool::stop;

set by dp_pool_destroy(): helpers exit


variable th

dp_thread_t* dp_pool::th;

helper thread handles (max_threads - 1 slots; the first helpers are live)


variable wake

dp_cond_t dp_pool::wake;

helpers wait here between runs


variable work

dp_pf_shared_t dp_pool::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