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

Method completeAsync

Libraries/Async/Async.cpp:2184–2199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2182}
2183
2184SC::Result SC::AsyncEventLoop::Internal::completeAsync(AsyncEventLoop& eventLoop, KernelEvents& kernelEvents,
2185 AsyncRequest& async, int32_t eventIndex, Result& returnCode,
2186 bool* hasBeenReactivated)
2187{
2188 if (returnCode)
2189 {
2190 SC_LOG_MESSAGE("{} {} COMPLETE\n", async.debugName, AsyncRequest::TypeToString(async.type));
2191 }
2192 else
2193 {
2194 SC_LOG_MESSAGE("{} {} COMPLETE (Error = \"{}\")\n", async.debugName, AsyncRequest::TypeToString(async.type),
2195 returnCode.message);
2196 }
2197 return Internal::applyOnAsync(
2198 async, CompleteAsyncPhase(eventIndex, eventLoop, kernelEvents, returnCode, hasBeenReactivated));
2199}
2200
2201SC::Result SC::AsyncEventLoop::Internal::cancelAsync(AsyncEventLoop& eventLoop, KernelEvents& kernelEvents,
2202 AsyncRequest& async)

Callers 1

operator()Method · 0.80

Calls 2

TypeToStringClass · 0.85
CompleteAsyncPhaseClass · 0.85

Tested by

no test coverage detected