Lines Matching defs:itimer
304 struct itimerval itimer;
330 * queue has a timeout greater than the itimer granularity.
332 * on an itimer is greater than the time at the head of the queue
337 timerclear(&itimer.it_value);
338 getitimer(ITIMER_REAL, &itimer);
339 if (timerisset(&itimer.it_value)) {
345 if (timercmp(&(itimer.it_value), &(event_queue->it_value), >)) {
356 event_queue->it_value = itimer.it_value;
396 timerclear(&itimer.it_interval);
397 itimer.it_value = event_queue->it_value;
401 if (!timerisset(&(itimer.it_value)))
402 itimer.it_value = (struct timeval) { 0, 1 };
404 assert(!timerisset(&itimer.it_interval));
405 assert(itimer.it_value.tv_sec > 0 || itimer.it_value.tv_usec >= g_granularity);
408 setitimer(ITIMER_REAL, &itimer, NULL);
421 struct itimerval itimer;
423 getitimer(ITIMER_REAL, &itimer);
424 if (timerisset(&itimer.it_interval)) {
428 if (timercmp(&(itimer.it_value), &(event_queue->it_value), >)) {
496 struct itimerval itimer;
592 timerclear(&itimer.it_interval);
593 itimer.it_value = event_queue->it_value;
596 if (!timerisset(&(itimer.it_value)))
597 itimer.it_value = (struct timeval) { 0, 1 };
599 setitimer(ITIMER_REAL, &itimer, NULL);
651 struct itimerval itimer;
677 timerclear(&itimer.it_value);
678 getitimer(ITIMER_REAL, &itimer);
683 timersub(&(event->it_value), &(itimer.it_value),
696 timerclear(&itimer.it_interval);
697 itimer.it_value = event_queue->it_value;
705 if (!timerisset(&(itimer.it_value)))
706 itimer.it_value = (struct timeval) { 0, 1 };
708 assert(itimer.it_value.tv_sec > 0 || itimer.it_value.tv_usec >=
713 setitimer(ITIMER_REAL, &itimer, NULL);