MCPcopy Create free account
hub / github.com/axboe/liburing / msec_to_ts

Function msec_to_ts

test/timeout-new.c:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18static pthread_mutex_t mutex;
19
20static void msec_to_ts(struct __kernel_timespec *ts, unsigned int msec)
21{
22 ts->tv_sec = msec / 1000;
23 ts->tv_nsec = (msec % 1000) * 1000000;
24}
25
26static int test_return_before_timeout(struct io_uring *ring)
27{

Callers 3

__reap_thread_fnFunction · 0.70

Calls

no outgoing calls

Tested by 2