struct Pbb_workers_desc * descs
the workers descriptors
This is a struct defining a FIFO It is composed of several Buffered_FIFO_chunk.
int id
the id of the workers
struct representing a job that does the actual data processing (created by Knowledge_system) ...
The MALP_blackboard structure.
struct MALP_blackboard * bb
the blackboard where the workers run
uint32_t running
indicates if the workers are running or not
Structure defining a parallel blackboard worker set.
uint32_t worker_count
the number of workers
void Pbb_workers_wait(struct Pbb_workers *wk)
Waits until all workers are done.
pthread_t * threads
the threads of the workers
struct Buffered_FIFO * fifos
a set of FIFOs where Knowledge_system_job are stored
void Pbb_workers_submit(struct Pbb_workers *wk, struct Knowledge_system_job *ksj)
sumbits a job on workers
struct Pbb_workers * wk
the workers
void Pbb_workers_init(struct Pbb_workers *wk, struct MALP_blackboard *bb, uint32_t wk_count)
Initializes workers.
void Pbb_workers_release(struct Pbb_workers *wk)
releases workers
structure describing a workers descriptor