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

Function __reap_thread_fn

test/timeout-new.c:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static int __reap_thread_fn(void *data)
90{
91 struct io_uring *ring = (struct io_uring *)data;
92 struct io_uring_cqe *cqe;
93 struct __kernel_timespec ts;
94
95 msec_to_ts(&ts, TIMEOUT_SEC);
96 pthread_mutex_lock(&mutex);
97 cnt++;
98 pthread_mutex_unlock(&mutex);
99 return io_uring_wait_cqe_timeout(ring, &cqe, &ts);
100}
101
102static void *reap_thread_fn0(void *data)
103{

Callers 2

reap_thread_fn0Function · 0.85
reap_thread_fn1Function · 0.85

Calls 2

msec_to_tsFunction · 0.70

Tested by

no test coverage detected