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

Method excludeFromActiveCount

Libraries/Async/Async.cpp:1075–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075void SC::AsyncEventLoop::excludeFromActiveCount(AsyncRequest& async)
1076{
1077 if (not async.isFree() and not async.isCancelling() and not isExcludedFromActiveCount(async))
1078 {
1079 async.flags |= Internal::Flag_ExcludeFromActiveCount;
1080 if (async.state == AsyncRequest::State::Active and (async.flags & Internal::Flag_ManualCompletion) == 0)
1081 {
1082 internal.numberOfExternals -= 1;
1083 }
1084 }
1085}
1086
1087void SC::AsyncEventLoop::includeInActiveCount(AsyncRequest& async)
1088{

Calls 2

isFreeMethod · 0.80
isCancellingMethod · 0.80