task_queue_t Struct Reference

#include <worker.h>


Detailed Description

task queue

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_tqueue
 array holding the tasks
int empty
 id of semaphore for signaling an empty queue
int full
 id of semaphore for signaling an full queue


Field Documentation

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().

int task_queue_t::start

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().

int task_queue_t::end

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().

int task_queue_t::max

size of the queue array

Definition at line 77 of file worker.h.

Referenced by put_task(), take_task(), worker_destroy(), and worker_init().

task_t* task_queue_t::queue

array holding the tasks

Definition at line 78 of file worker.h.

Referenced by put_task(), take_task(), worker_destroy(), and worker_init().

int task_queue_t::empty

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().

int task_queue_t::full

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().


The documentation for this struct was generated from the following file:
Generated on Tue Jul 29 04:19:20 2008 for Open IMS Core CSCFs by  doxygen 1.5.2