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

Method run

Libraries/Async/Async.cpp:924–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922SC::Result SC::AsyncEventLoop::runNoWait() { return internal.runStep(*this, Internal::SyncMode::NoWait); }
923
924SC::Result SC::AsyncEventLoop::run()
925{
926 while (internal.getTotalNumberOfActiveHandle() != 0 or not internal.submissions.isEmpty() or
927 internal.numberOfManualCompletions != 0 or internal.hasPendingKernelCancellations or
928 not internal.cancellations.isEmpty())
929 {
930 SC_TRY(runOnce());
931 if (internal.interrupted)
932 {
933 internal.interrupted = false;
934 break;
935 }
936 };
937 // We may still have pending cancellation callbacks
938 internal.executeCancellationCallbacks(*this);
939 return SC::Result(true);
940}
941
942SC::Result SC::AsyncEventLoop::submitRequests(AsyncKernelEvents& kernelEvents)
943{

Callers 1

closeMethod · 0.45

Calls 4

ResultClass · 0.70
isEmptyMethod · 0.45

Tested by

no test coverage detected