VirtualBox

Changeset 38754 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 14, 2011 5:36:15 PM (13 years ago)
Author:
vboxsync
Message:

Main: prevent incorrect exiting of async event thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r38211 r38754  
    45394539    RTThreadUserSignal(thread);
    45404540
    4541     while (RT_SUCCESS(eventQ->processEventQueue(RT_INDEFINITE_WAIT)))
     4541    /*
     4542     * In case of spurious wakeups causing VERR_TIMEOUTs and/or other return codes
     4543     * we must not stop processing events and delete the "eventQ" object. This must
     4544     * be done ONLY when we stop this loop via interruptEventQueueProcessing().
     4545     * See #5724.
     4546     */
     4547    while (eventQ->processEventQueue(RT_INDEFINITE_WAIT) != VERR_INTERRUPTED)
    45424548        /* nothing */ ;
    45434549
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