VirtualBox

Changeset 238 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 23, 2007 1:33:33 PM (18 years ago)
Author:
vboxsync
Message:

Keep the framebuffer locked during resizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/DisplayImpl.cpp

    r146 r238  
    140140    {
    141141        LogFlow(("VMDisplay::handleDisplayResize: external framebuffer wants us to wait!\n"));
     142
     143        /* Note: The previously obtained framebuffer lock must be preserved.
     144         *       The EMT keeps the framebuffer lock until the resize process completes.
     145         */
     146
    142147        /// @todo is this compatible with VBOX_NEXT_STEP?
    143148        // the framebuffer needs more time to process
    144149        // the event so we have to halt the VM until it's done
    145150        RTSemEventMultiReset(mResizeSem);
    146         mFramebuffer->Unlock();
    147151        RTSemEventMultiWait(mResizeSem, RT_INDEFINITE_WAIT);
    148         mFramebuffer->Lock();
    149152    }
    150153
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