Lines Matching defs:when
69 handler_func *proc; /* Procedure to call when fd is ready. */
76 /* PROC is a function to be invoked when the READY flag is set. This
77 happens when there has been a signal and the corresponding signal
171 struct timeval when;
260 associated to FD when it was registered with the event loop. */
391 an event and then processes it. >0 when an event is processed, 0
392 when catch_errors() caught an error and <0 when there are no
480 PROC is the procedure that will be called when an event occurs for
892 be used when the handlers are invoked, after we have waited for
983 timer_ptr->when.tv_sec = time_now.tv_sec + delta.tv_sec;
984 timer_ptr->when.tv_usec = time_now.tv_usec + delta.tv_usec;
986 if (timer_ptr->when.tv_usec >= 1000000)
988 timer_ptr->when.tv_sec += 1;
989 timer_ptr->when.tv_usec -= 1000000;
1005 if ((timer_index->when.tv_sec > timer_ptr->when.tv_sec) ||
1006 ((timer_index->when.tv_sec == timer_ptr->when.tv_sec)
1007 && (timer_index->when.tv_usec > timer_ptr->when.tv_usec)))
1081 if ((timer_ptr->when.tv_sec > time_now.tv_sec) ||
1082 ((timer_ptr->when.tv_sec == time_now.tv_sec) &&
1083 (timer_ptr->when.tv_usec > time_now.tv_usec)))
1113 delta.tv_sec = timer_list.first_timer->when.tv_sec - time_now.tv_sec;
1114 delta.tv_usec = timer_list.first_timer->when.tv_usec - time_now.tv_usec;
1125 if (timer_list.first_timer->when.tv_sec < time_now.tv_sec
1126 || (timer_list.first_timer->when.tv_sec == time_now.tv_sec
1127 && timer_list.first_timer->when.tv_usec < time_now.tv_usec))