FACT++  1.0
int dtq_rem_entry ( int  queue_id,
TIMR_ENT entry 
)

Definition at line 503 of file dtq.c.

References dll_remove(), Memory::free(), get_elapsed_time(), queue_id, QUEUE_ENT::remove_entries, timer_entry::time, and timer_entry::time_left.

Referenced by close_dns(), do_dis_add_service(), do_dis_stop_serving_dns(), dtq_stop_timer(), modify_service(), recv_dns_dis_rout(), recv_rout(), release_conn(), release_request(), release_service(), retry_dns_connection(), tcpip_close(), and tcpip_rem_test_write().

504 {
505  int time_left, deltat = 0;
506 
507  DISABLE_AST
508  deltat = get_elapsed_time();
509  time_left = entry->time_left - deltat;
510  if( Inside_ast )
511  {
513  entry->time = -1;
514  ENABLE_AST
515  return(time_left);
516  }
517  dll_remove(entry);
518  free(entry);
519 
520  ENABLE_AST
521  return(time_left);
522 }
static int get_elapsed_time()
Definition: dtq.c:247
static QUEUE_ENT timer_queues[MAX_TIMER_QUEUES+2]
Definition: dtq.c:54
void dll_remove(DLL *item)
Definition: dll.c:100
static int Inside_ast
Definition: dtq.c:59
int time_left
Definition: dim.h:375
int remove_entries
Definition: dtq.c:50
void free(void *mem)
int time
Definition: dim.h:374
static int queue_id
Definition: tcpip.c:93

+ Here is the call graph for this function:

+ Here is the caller graph for this function: