| 2075 | // clang-format on |
| 2076 | } |
| 2077 | SC::Result SC::AsyncEventLoop::Internal::setupAsync(AsyncEventLoop& eventLoop, KernelEvents& kernelEvents, |
| 2078 | AsyncRequest& async) |
| 2079 | { |
| 2080 | SC_LOG_MESSAGE("{} {} SETUP\n", async.debugName, AsyncRequest::TypeToString(async.type)); |
| 2081 | // Reset flags that may have been left by previous activations |
| 2082 | async.flags &= ~(Flag_ManualCompletion | Flag_NeedsTeardown); |
| 2083 | // Note that we're preserving the Flag_ExcludeFromActiveCount |
| 2084 | return Internal::applyOnAsync(async, SetupAsyncPhase{eventLoop, kernelEvents}); |
| 2085 | } |
| 2086 | |
| 2087 | SC::Result SC::AsyncEventLoop::Internal::activateAsync(AsyncEventLoop& eventLoop, KernelEvents& kernelEvents, |
| 2088 | AsyncRequest& async) |