Lines Matching refs:tims
192 static PollTim_t * tims; /* timer registration records */ variable
375 for(p = tims; p < &tims[tims_alloc]; p++) in poll_start_utimer()
379 if(p == &tims[tims_alloc]) { in poll_start_utimer()
382 tims = _xrealloc(tims, sizeof(tims[0]) * newsize); in poll_start_utimer()
383 for(p = &tims[tims_alloc]; p < &tims[newsize]; p++) in poll_start_utimer()
385 p = &tims[tims_alloc]; in poll_start_utimer()
403 repeat, (void *)func, (void *)arg, p - tims); in poll_start_utimer()
405 return p - tims; in poll_start_utimer()
423 tims[handle].func = NULL; in poll_stop_timer()
448 return tims[t1].when < tims[t2].when ? -1 in tim_cmp()
449 : tims[t1].when > tims[t2].when ? +1 in tim_cmp()
473 if(tims[i].func) in sort_timers()
527 if((tout = tims[tfd[0]].when - now) < 0) in poll_dispatch()
618 if(tims[tfd[i]].when > now) in poll_dispatch()
623 (*tims[tfd[i]].func)(tfd[i], tims[tfd[i]].arg); in poll_dispatch()
626 if(tims[tfd[i]].repeat) in poll_dispatch()
627 tims[tfd[i]].when = now + tims[tfd[i]].usecs; in poll_dispatch()
629 tims[tfd[i]].func = NULL; in poll_dispatch()