CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
caps_worker_idx_context Struct Reference

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_idxciw
 

Detailed Description

Some vars (terminate, idx_current) needs to be of type 'unsigned int' due to the use of built-in __atomic_* operators.

Field Documentation

◆ terminate

unsigned int terminate

Not 0 to signal all threads to stop processing

◆ idx_next

unsigned int idx_next

Print index loop counter

◆ idx_current

unsigned int idx_current

◆ idx_max

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

◆ idx_finished

sem_t idx_finished

Counts up whenever an index is processed, counts down whenever an index is sent

◆ thread_count

size_t thread_count

Count of threads to process the indices

◆ threads

pthread_t* threads

Array of thread info

◆ protocol_data

void* protocol_data

Anonymous pointer to some kind of data used by the protocol driver

◆ ciw

const struct caps_worker_idx* ciw

Definition of the call backs


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