libunifex icon indicating copy to clipboard operation
libunifex copied to clipboard

io_uring_context should use std::atomic<std:: thread::id> instead of thread_local to determine if currently on the I/O thread

Open lewissbaker opened this issue 2 years ago • 1 comments

This should avoid the use of thread_local but should also allow us to detect whether a context's run() method is executing regardless of whether there is a nested io_uring_context::run() method running inside a task executed by the outer one.

lewissbaker avatar Sep 27 '21 05:09 lewissbaker

@lewissbaker is currentThreadContext what you meant?

janondrusek avatar Jul 29 '22 21:07 janondrusek