FACT++  1.0
static int stop_it ( )
static

Definition at line 613 of file dtq.c.

References get_current_time(), get_elapsed_time(), get_minimum(), and my_alarm().

Referenced by alrm_sig_handler(), and dtq_add_entry().

614 {
615  int min_time;
616  int deltat = 0;
617 
618  DISABLE_AST
619  if(Alarm_runs)
620  {
621  my_alarm(0);
622  deltat = get_elapsed_time();
623  if(deltat != 0)
625  Alarm_runs = 0;
626  }
627  min_time = get_minimum(deltat);
628  ENABLE_AST
629  return(min_time);
630 }
static time_t DIM_last_time
Definition: dtq.c:67
static int get_elapsed_time()
Definition: dtq.c:247
static int Alarm_runs
Definition: dtq.c:60
static int DIM_last_time_millies
Definition: dtq.c:68
static int get_current_time(int *millies)
Definition: dtq.c:224
static int get_minimum(int deltat)
Definition: dtq.c:555
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: