| 982 | } |
| 983 | |
| 984 | SC::Result SC::AsyncEventLoop::wakeUpFromExternalThread() |
| 985 | { |
| 986 | if (not internal.wakeUpPending.exchange(true)) |
| 987 | { |
| 988 | // This executes if current thread is lucky enough to atomically exchange pending from false to true. |
| 989 | // This effectively allows coalescing calls from different threads into a single notification. |
| 990 | return internal.kernelQueue.get().wakeUpFromExternalThread(); |
| 991 | } |
| 992 | return Result(true); |
| 993 | } |
| 994 | |
| 995 | SC::Result SC::AsyncEventLoop::associateExternallyCreatedFileDescriptor(FileDescriptor& descriptor) |
| 996 | { |
no test coverage detected