VirtualBox

Changeset 46072 in vbox


Ignore:
Timestamp:
May 14, 2013 3:54:34 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85747
Message:

FE/Qt: 6749: Synchronize EMT and GUI threads for NotifyUpdate too (similar method used in other places for now).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp

    r46064 r46072  
    162162    NOREF(uScreenId);
    163163    *pbFinished = FALSE;
    164     lock();  /* See comment in setView(). */
     164    lock(); /* See comment in setView(). */
    165165    if (m_pMachineView)
    166166        QApplication::postEvent(m_pMachineView,
     
    183183     * So we have to post an async event to perform update operation.
    184184     * Later the event will be replaced by the corresponding signal stuff: */
    185     QApplication::postEvent(m_pMachineView, new UIRepaintEvent(uX, uY, uW, uH));
     185    lock(); /* See comment in setView(). */
     186    if (m_pMachineView)
     187        QApplication::postEvent(m_pMachineView, new UIRepaintEvent(uX, uY, uW, uH));
     188    unlock();
     189
    186190    return S_OK;
    187191}
     
    208212    *pbSupported = TRUE;
    209213
    210     lock();  /* See comment in setView(). */
     214    lock(); /* See comment in setView(). */
    211215    QSize screen;
    212216    if (m_pMachineView)
     
    259263        ++ rects;
    260264    }
    261     lock();  /* See comment in setView(). */
     265    lock(); /* See comment in setView(). */
    262266    if (m_pMachineView)
    263267        QApplication::postEvent(m_pMachineView, new UISetRegionEvent(reg));
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