#include <worker.h>
Definition at line 73 of file worker.h.
Data Fields | |
| gen_lock_t * | lock |
| lock for task queue operations | |
| int | start |
| start position in the queue array (index of oldest task) | |
| int | end |
| end position in the queue array (index of the youngest task) | |
| int | max |
| size of the queue array | |
| task_t * | queue |
| array holding the tasks | |
| int | empty |
| id of semaphore for signaling an empty queue | |
| int | full |
| id of semaphore for signaling an full queue | |
| gen_lock_t* task_queue_t::lock |
lock for task queue operations
Definition at line 74 of file worker.h.
Referenced by put_task(), take_task(), worker_destroy(), and worker_init().
start position in the queue array (index of oldest task)
Definition at line 75 of file worker.h.
Referenced by cdp_lock_release(), put_task(), take_task(), worker_init(), and worker_process().
end position in the queue array (index of the youngest task)
Definition at line 76 of file worker.h.
Referenced by cdp_lock_release(), put_task(), take_task(), worker_init(), and worker_process().
size of the queue array
Definition at line 77 of file worker.h.
Referenced by put_task(), take_task(), worker_destroy(), and worker_init().
array holding the tasks
Definition at line 78 of file worker.h.
Referenced by put_task(), take_task(), worker_destroy(), and worker_init().
id of semaphore for signaling an empty queue
Definition at line 79 of file worker.h.
Referenced by put_task(), take_task(), worker_destroy(), worker_init(), and worker_poison_queue().
id of semaphore for signaling an full queue
Definition at line 80 of file worker.h.
Referenced by cdp_lock_release(), put_task(), take_task(), worker_destroy(), and worker_init().
1.5.2