FACT++  1.0
static int start_it ( int  new_time)
static

Definition at line 632 of file dtq.c.

References dll_get_next(), get_current_time(), my_alarm(), QUEUE_ENT::queue_head, and WRITE_QUEUE.

Referenced by alrm_sig_handler(), and dtq_add_entry().

633 {
634  int next_time;
635  TIMR_ENT *queue_head;
636 
637  DISABLE_AST
638  next_time = new_time;
639  if(next_time > 0)
640  {
641  queue_head = timer_queues[WRITE_QUEUE].queue_head;
642  if( dll_get_next((DLL *)queue_head,(DLL *)queue_head))
643  {
644  next_time = -10;
645  }
646  }
647  if(next_time)
648  {
649  my_alarm(next_time);
650  Alarm_runs = 1;
651  if(!DIM_last_time)
653  }
654  else
655  DIM_last_time = 0;
656 
657  ENABLE_AST
658  return(1);
659 }
static time_t DIM_last_time
Definition: dtq.c:67
Definition: dim.h:370
#define WRITE_QUEUE
Definition: dtq.c:33
static int Alarm_runs
Definition: dtq.c:60
static QUEUE_ENT timer_queues[MAX_TIMER_QUEUES+2]
Definition: dtq.c:54
static int DIM_last_time_millies
Definition: dtq.c:68
TIMR_ENT * queue_head
Definition: dtq.c:49
static int get_current_time(int *millies)
Definition: dtq.c:224
Definition: dim.h:530
DLL * dll_get_next(DLL *head, DLL *item)
Definition: dll.c:66
static int my_alarm(int secs)
Definition: dtq.c:261

+ Here is the call graph for this function:

+ Here is the caller graph for this function: