Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 6 of 6) sorted by relevance

/libevent-2.1.12/
H A Devent_iocp.c67 long ms = port->ms; in loop() local
70 if (ms <= 0) in loop()
71 ms = INFINITE; in loop()
78 &overlapped, ms); in loop()
196 port->ms = -1; in event_iocp_port_launch_()
252 DWORD ms = INFINITE; in event_iocp_shutdown_() local
261 ms = waitMsec; in event_iocp_shutdown_()
263 WaitForSingleObject(port->shutdownSemaphore, ms); in event_iocp_shutdown_()
H A Devthread_win32.c161 DWORD ms, err; in evthread_win32_condvar_wait() local
165 ms = evutil_tv_to_msec_(tv); in evthread_win32_condvar_wait()
167 ms = INFINITE; in evthread_win32_condvar_wait()
168 result = SleepConditionVariableCS_fn(cond, lock, ms); in evthread_win32_condvar_wait()
240 DWORD ms = INFINITE, ms_orig = INFINITE, startTime, endTime; in evthread_win32_cond_wait() local
242 ms_orig = ms = evutil_tv_to_msec_(tv); in evthread_win32_cond_wait()
254 res = WaitForSingleObject(cond->event, ms); in evthread_win32_cond_wait()
268 } else if (ms != INFINITE) { in evthread_win32_cond_wait()
276 ms = startTime + ms_orig - endTime; in evthread_win32_cond_wait()
H A Diocp-internal.h86 long ms; member
/libevent-2.1.12/test/
H A Dregress_main.c104 long ms = end->tv_sec - start->tv_sec; in timeval_msec_diff() local
105 ms *= 1000; in timeval_msec_diff()
106 ms += ((end->tv_usec - start->tv_usec)+500) / 1000; in timeval_msec_diff()
107 return ms; in timeval_msec_diff()
H A Dregress_iocp.c91 count_wait_for(int i, int ms) in count_wait_for() argument
98 while (ms > 0 && count != i) { in count_wait_for()
100 tv.tv_usec = ms * 1000; in count_wait_for()
104 ms -= elapsed; in count_wait_for()
H A Dregress_thread.c393 SLEEP_MS(int ms) in SLEEP_MS() argument
396 tv.tv_sec = ms/1000; in SLEEP_MS()
397 tv.tv_usec = (ms%1000)*1000; in SLEEP_MS()