Home
last modified time | relevance | path

Searched refs:tvp (Results 1 – 5 of 5) sorted by relevance

/redis-3.2.3/src/
H A Dae.c364 struct timeval tv, *tvp; in aeProcessEvents() local
372 tvp = &tv; in aeProcessEvents()
381 tvp->tv_sec = ms/1000; in aeProcessEvents()
382 tvp->tv_usec = (ms % 1000)*1000; in aeProcessEvents()
384 tvp->tv_sec = 0; in aeProcessEvents()
385 tvp->tv_usec = 0; in aeProcessEvents()
393 tvp = &tv; in aeProcessEvents()
396 tvp = NULL; /* wait forever */ in aeProcessEvents()
400 numevents = aeApiPoll(eventLoop, tvp); in aeProcessEvents()
H A Dae_epoll.c108 static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { in aeApiPoll() argument
113 tvp ? (tvp->tv_sec*1000 + tvp->tv_usec/1000) : -1); in aeApiPoll()
H A Dae_kqueue.c104 static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { in aeApiPoll() argument
108 if (tvp != NULL) { in aeApiPoll()
110 timeout.tv_sec = tvp->tv_sec; in aeApiPoll()
111 timeout.tv_nsec = tvp->tv_usec * 1000; in aeApiPoll()
H A Dae_evport.c243 static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { in aeApiPoll() argument
272 if (tvp != NULL) { in aeApiPoll()
273 timeout.tv_sec = tvp->tv_sec; in aeApiPoll()
274 timeout.tv_nsec = tvp->tv_usec * 1000; in aeApiPoll()
H A Dae_select.c77 static int aeApiPoll(aeEventLoop *eventLoop, struct timeval *tvp) { in aeApiPoll() argument
85 &state->_rfds,&state->_wfds,NULL,tvp); in aeApiPoll()