FACT++  1.0
int dtq_clear_entry ( TIMR_ENT entry)

Definition at line 490 of file dtq.c.

References get_elapsed_time(), timer_entry::time, and timer_entry::time_left.

Referenced by handle_dns_info(), and recv_rout().

491 {
492  int time_left, deltat = 0;
493 
494  DISABLE_AST
495  deltat = get_elapsed_time();
496  time_left = entry->time_left - deltat;
497  entry->time_left = entry->time + deltat;
498  ENABLE_AST
499  return(time_left);
500 }
static int get_elapsed_time()
Definition: dtq.c:247
int time_left
Definition: dim.h:375
int time
Definition: dim.h:374

+ Here is the call graph for this function:

+ Here is the caller graph for this function: