FACT++  1.0
int dtq_delete ( int  queue_id)

Definition at line 378 of file dtq.c.

References dll_empty(), dll_remove(), Memory::free(), timer_entry::next, QUEUE_ENT::queue_head, and queue_id.

Referenced by dic_stop(), dim_dtq_stop(), and dis_stop_serving().

379 {
380  TIMR_ENT *queue_head, *entry;
381 
382  DISABLE_AST
383  queue_head = timer_queues[queue_id].queue_head;
384  if(queue_head)
385  {
386  while(!dll_empty((DLL *)queue_head))
387  {
388  entry = queue_head->next;
389  dll_remove(entry);
390  free(entry);
391  }
392  free(queue_head);
394  }
395  ENABLE_AST
396  return(1);
397 }
Definition: dim.h:370
static QUEUE_ENT timer_queues[MAX_TIMER_QUEUES+2]
Definition: dtq.c:54
void dll_remove(DLL *item)
Definition: dll.c:100
TIMR_ENT * queue_head
Definition: dtq.c:49
Definition: dim.h:530
int dll_empty(DLL *head)
Definition: dll.c:88
void free(void *mem)
struct timer_entry * next
Definition: dim.h:371
static int queue_id
Definition: tcpip.c:93

+ Here is the call graph for this function:

+ Here is the caller graph for this function: