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

Method monitoringLoopThread

Libraries/Async/Async.cpp:1195–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193 if (earliestTime == nullptr or
1194 earliestTime->expirationTime.milliseconds >= timeout.expirationTime.milliseconds)
1195 {
1196 earliestTime = &timeout;
1197 }
1198 }
1199 }
1200
1201 return earliestTime;
1202}
1203
1204void SC::AsyncEventLoop::excludeFromActiveCount(AsyncRequest& async)
1205{
1206 if (not async.isFree() and not async.isCancelling() and not isExcludedFromActiveCount(async))
1207 {
1208 async.flags |= Internal::Flag_ExcludeFromActiveCount;
1209 if (async.state == AsyncRequest::State::Active and (async.flags & Internal::Flag_ManualCompletion) == 0)
1210 {
1211 internal.numberOfExternals -= 1;
1212 }
1213 }
1214}
1215

Callers

nothing calls this directly

Calls 7

blockingPollMethod · 0.80
ResultClass · 0.70
setThreadNameMethod · 0.45
waitMethod · 0.45
exchangeMethod · 0.45
signalMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected