MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / executeCancellationCallbacks

Method executeCancellationCallbacks

Libraries/Async/Async.cpp:1731–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1729}
1730
1731void SC::AsyncEventLoop::Internal::executeCancellationCallbacks(AsyncEventLoop& eventLoop)
1732{
1733 AsyncRequest* async = cancellations.front;
1734 while (async)
1735 {
1736 AsyncRequest* next = async->next;
1737 SC_ASYNC_ASSERT_RELEASE(async->state == AsyncRequest::State::Cancelling);
1738 if (async->flags & Flag_WaitingKernelCancel)
1739 {
1740 // Keep polling until kernel cancellation packet is drained.
1741 hasPendingKernelCancellations = true;
1742 async = next;
1743 continue;
1744 }
1745 completeCancellation(eventLoop, *async);
1746 async = next;
1747 }
1748}
1749
1750void SC::AsyncEventLoop::Internal::completeCancellation(AsyncEventLoop& eventLoop, AsyncRequest& async)
1751{

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected