8000 Async: When interrupted loop shouldn't dispatch completions · Pagghiu/SaneCppLibraries@8b37561 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 8b37561

Browse files
committed
Async: When interrupted loop shouldn't dispatch completions
1 parent 8950662 commit 8b37561

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/Async/Async.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,10 @@ SC::Result SC::AsyncEventLoop::Internal::blockingPoll(AsyncEventLoop& loop, Sync
850850
SC::Result SC::AsyncEventLoop::Internal::dispatchCompletions(AsyncEventLoop& loop, SyncMode syncMode,
851851
AsyncKernelEvents& asyncKernelEvents)
852852
{
853+
if (interrupted)
854+
{
855+
return SC::Result(true);
856+
}
853857
executeCancellationCallbacks();
854858
KernelEvents kernelEvents(loop.internal.kernelQueue.get(), asyncKernelEvents);
855859
switch (syncMode)

0 commit comments

Comments
 (0)
0