VirtualBox

Changeset 48894 in vbox


Ignore:
Timestamp:
Oct 4, 2013 6:59:09 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: UI thread-pool: Instant worker-thread unlock on termination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIThreadPool.cpp

    r48822 r48894  
    156156    /* Make sure we have a task or outdated: */
    157157    bool fOutdated = false;
    158     while (!pTask && !fOutdated)
     158    while (!isTerminating() && !pTask && !fOutdated)
    159159    {
    160160        /* Mark thread as not busy: */
     
    172172            pTask = m_tasks.dequeue();
    173173    }
    174     Assert(pTask || fOutdated);
     174    Assert(isTerminating() || pTask || fOutdated);
    175175
    176176    /* Unlock task locker: */
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