VirtualBox

Changeset 103543 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Feb 23, 2024 8:23:28 AM (11 months ago)
Author:
vboxsync
Message:

Runtime/misc/reqpool.cpp: Need to update the idle thread counter because it was already incremented before, fixes starvation when executing longer lasting requests because the submission code would think there were idle threads, when there actually wasn't any.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/reqpool.cpp

    r98103 r103543  
    396396        {
    397397            Assert(RTListIsEmpty(&pThread->IdleNode)); /* Must not be in the idle list. */
     398            ASMAtomicDecU32(&pPool->cIdleThreads); /* Was already marked as idle above. */
    398399            RTCritSectLeave(&pPool->CritSect);
    399400
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette