FACT++  1.0
static int my_alarm ( int  secs)
static

Definition at line 261 of file dtq.c.

References DIM_time_left.

Referenced by dtq_add_entry(), start_it(), and stop_it().

262 {
263  int ret;
264 
265  DIM_next_time = secs;
266 #ifndef WIN32
267  if(Threads_off)
268  {
269  if( secs < 0)
270  {
271  kill(getpid(),SIGALRM);
272  return(0);
273  }
274  else
275  {
276  return((int)alarm((unsigned int)secs));
277  }
278  }
279  else
280  {
281 #endif
282 
283  ret = DIM_time_left;
284 
285  if(secs == 0)
286  DIM_next_time = -1;
287  return(ret);
288 #ifndef WIN32
289  }
290 #endif
291 }
static int DIM_next_time
Definition: dtq.c:69
static int Threads_off
Definition: dtq.c:71
static int DIM_time_left
Definition: dtq.c:70

+ Here is the caller graph for this function: