VirtualBox

Changeset 20087 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
May 27, 2009 2:31:18 PM (16 years ago)
Author:
vboxsync
Message:

TM,*: Proper timer callback locking and pvUser for devices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r19844 r20087  
    50715071
    50725072
    5073 static DECLCALLBACK(void) vgaTimerRefresh(PPDMDEVINS pDevIns, PTMTIMER pTimer)
    5074 {
    5075     PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
     5073static DECLCALLBACK(void) vgaTimerRefresh(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
     5074{
     5075    PVGASTATE pThis = (PVGASTATE)pvUser;
    50765076
    50775077    if (pThis->pDrv)
     
    57835783     * Create the refresh timer.
    57845784     */
    5785     rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, vgaTimerRefresh, "VGA Refresh Timer", &pThis->RefreshTimer);
     5785    rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, vgaTimerRefresh,
     5786                                pThis, TMTIMER_FLAGS_DEFAULT_CRIT_SECT, /** @todo This needs to be fixed! We cannot take the I/O lock at this point! */
     5787                                "VGA Refresh Timer", &pThis->RefreshTimer);
    57865788    if (RT_FAILURE(rc))
    57875789        return rc;
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