Changeset 103547 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Feb 23, 2024 3:23:03 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/reqpool.cpp
r103543 r103547 439 439 uint64_t cNsIdle = RTTimeNanoTS() - pThread->uIdleNanoTs; 440 440 if (cNsIdle >= pPool->cNsMinIdle) 441 { 442 ASMAtomicDecU32(&pPool->cIdleThreads); /* Was already marked as idle above. */ 441 443 return rtReqPoolThreadExit(pPool, pThread, true /*fLocked*/); 444 } 442 445 } 443 446 … … 580 583 * maximum number of worker threads, we're done. 581 584 */ 582 if ( pPool->cIdleThreads > 0585 if ( pPool->cIdleThreads >= pPool->cCurPendingRequests 583 586 || pPool->cCurThreads >= pPool->cMaxThreads) 584 587 {
Note:
See TracChangeset
for help on using the changeset viewer.