FACT++  1.0
int dtq_stop_timer ( dim_long  tag)

Definition at line 806 of file dtq.c.

References dll_get_next(), dtq_rem_entry(), QUEUE_ENT::queue_head, SPECIAL_QUEUE, and timer_entry::tag.

Referenced by Java_dim_DimTimer_stop(), and DimTimer::stop().

807 {
808  TIMR_ENT *entry, *queue_head;
809  int time_left = -1;
810 
811  queue_head = timer_queues[SPECIAL_QUEUE].queue_head;
812  entry = queue_head;
813  while( (entry = (TIMR_ENT *)dll_get_next((DLL *)queue_head,(DLL *)entry)) )
814  {
815  if( entry->tag == tag )
816  {
817  time_left = dtq_rem_entry( SPECIAL_QUEUE, entry );
818  break;
819  }
820  }
821  return(time_left);
822 }
dim_long tag
Definition: dim.h:377
Definition: dim.h:370
#define SPECIAL_QUEUE
Definition: dtq.c:32
static QUEUE_ENT timer_queues[MAX_TIMER_QUEUES+2]
Definition: dtq.c:54
TIMR_ENT * queue_head
Definition: dtq.c:49
Definition: dim.h:530
int dtq_rem_entry(int queue_id, TIMR_ENT *entry)
Definition: dtq.c:503
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: