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

Method disableThreadPool

Libraries/Async/Async.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void SC::AsyncRequest::disableThreadPool()
105{
106 AsyncTaskSequence* asyncTask = getTask();
107 if (asyncTask)
108 {
109 // Preserve AsyncSequence but disable AsyncTaskSequence
110 asyncTask->threadPool = nullptr;
111 flags &= ~AsyncEventLoop::Internal::Flag_AsyncTaskSequenceInUse;
112 flags &= ~AsyncEventLoop::Internal::Flag_AsyncTaskSequence;
113 flags &= ~AsyncEventLoop::Internal::Flag_ForceThreadPool;
114 }
115}
116
117SC::Result SC::AsyncRequest::checkState()
118{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected