VirtualBox

Changeset 279 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 24, 2007 4:06:21 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17824
Message:

Reset the resize event in proper place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r238 r279  
    194194    BOOL finished = TRUE;
    195195
     196    /* Reset the event here. It could be signalled before it gets to after 'if (!finished)' */
     197    RTSemEventMultiReset(mResizeSem);
     198
    196199    mFramebuffer->RequestResize (pixelFormat, (ULONG)pvVRAM, cbLine, w, h, &finished);
    197200
     
    203206         *       The EMT keeps the lock until the resize process completes.
    204207         */
    205        
     208
    206209        /* The framebuffer needs more time to process
    207210         * the event so we have to halt the VM until it's done.
    208211         */
    209         RTSemEventMultiReset(mResizeSem);
    210212        RTSemEventMultiWait(mResizeSem, RT_INDEFINITE_WAIT); /** @todo r=bird: this is a serious deadlock point, where EMT is stuck while the main thread is doing VMR3Req for some reason. */
    211213    }
Note: See TracChangeset for help on using the changeset viewer.

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