CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Index worker internal tracking data. More...
Data Fields | |
unsigned int | terminate |
unsigned int | idx_next |
unsigned int | idx_current |
unsigned int | idx_max |
sem_t | idx_finished |
size_t | thread_count |
pthread_t * | threads |
void * | protocol_data |
const struct caps_worker_idx * | ciw |
Some vars (terminate, idx_current) needs to be of type 'unsigned int' due to the use of built-in __atomic_* operators.
unsigned int terminate |
Not 0 to signal all threads to stop processing
unsigned int idx_next |
Print index loop counter
unsigned int idx_current |
unsigned int idx_max |
Increased by each thread and used as some kind of index Max count caps_worker_idx_context::idx_current can increase to
sem_t idx_finished |
Counts up whenever an index is processed, counts down whenever an index is sent
size_t thread_count |
Count of threads to process the indices
pthread_t* threads |
Array of thread info
void* protocol_data |
Anonymous pointer to some kind of data used by the protocol driver
const struct caps_worker_idx* ciw |
Definition of the call backs