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

Method teardownAsync

Libraries/Async/Async.cpp:2097–2157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2095}
2096
2097SC::Result SC::AsyncEventLoop::Internal::teardownAsync(AsyncTeardown& teardown)
2098{
2099 SC_LOG_MESSAGE("{} {} TEARDOWN\n", teardown.debugName, AsyncRequest::TypeToString(teardown.type));
2100
2101 switch (teardown.type)
2102 {
2103 case AsyncRequest::Type::LoopTimeout:
2104 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncLoopTimeout*>(nullptr), teardown));
2105 break;
2106 case AsyncRequest::Type::LoopWakeUp:
2107 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncLoopWakeUp*>(nullptr), teardown));
2108 break;
2109 case AsyncRequest::Type::LoopWork:
2110 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncLoopWork*>(nullptr), teardown));
2111 break;
2112 case AsyncRequest::Type::ProcessExit:
2113 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncProcessExit*>(nullptr), teardown));
2114 break;
2115 case AsyncRequest::Type::Signal:
2116 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSignal*>(nullptr), teardown));
2117 break;
2118 case AsyncRequest::Type::SocketAccept:
2119 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketAccept*>(nullptr), teardown));
2120 break;
2121 case AsyncRequest::Type::SocketConnect:
2122 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketConnect*>(nullptr), teardown));
2123 break;
2124 case AsyncRequest::Type::SocketSend:
2125 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketSend*>(nullptr), teardown));
2126 break;
2127 case AsyncRequest::Type::SocketSendTo:
2128 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketSendTo*>(nullptr), teardown));
2129 break;
2130 case AsyncRequest::Type::SocketReceive:
2131 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketReceive*>(nullptr), teardown));
2132 break;
2133 case AsyncRequest::Type::SocketReceiveFrom:
2134 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncSocketReceiveFrom*>(nullptr), teardown));
2135 break;
2136 case AsyncRequest::Type::FileRead:
2137 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncFileRead*>(nullptr), teardown));
2138 break;
2139 case AsyncRequest::Type::FileWrite:
2140 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncFileWrite*>(nullptr), teardown));
2141 break;
2142 case AsyncRequest::Type::FileSend:
2143 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncFileSend*>(nullptr), teardown));
2144 break;
2145 case AsyncRequest::Type::FileReadiness:
2146 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncFileReadiness*>(nullptr), teardown));
2147 break;
2148 case AsyncRequest::Type::ExternalCompletion:
2149 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncExternalCompletion*>(nullptr), teardown));
2150 break;
2151 case AsyncRequest::Type::FileSystemOperation:
2152 SC_TRY(KernelEvents::teardownAsync(static_cast<AsyncFileSystemOperation*>(nullptr), teardown));
2153 break;
2154 }

Callers

nothing calls this directly

Calls 2

TypeToStringClass · 0.85
ResultClass · 0.70

Tested by

no test coverage detected