| 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 | |
| 1204 | void 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 |
nothing calls this directly
no test coverage detected