VirtualBox

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


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/Storage/fdc.c

    r13080 r20087  
    23432343
    23442344#ifdef VBOX
    2345 static DECLCALLBACK(void) fdc_timer (PPDMDEVINS pDevIns, PTMTIMER pTimer)
    2346 {
    2347     fdctrl_t *fdctrl = PDMINS_2_DATA (pDevIns, fdctrl_t *);
     2345static DECLCALLBACK(void) fdc_timer (PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
     2346{
     2347    fdctrl_t *fdctrl = (fdctrl_t *)pvUser;
    23482348    fdctrl_result_timer (fdctrl);
    23492349}
     
    28492849     * Create the FDC timer.
    28502850     */
    2851     rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, fdc_timer, "FDC Timer", &fdctrl->result_timer);
     2851    rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, fdc_timer, fdctrl,
     2852                                TMTIMER_FLAGS_DEFAULT_CRIT_SECT, "FDC Timer", &fdctrl->result_timer);
    28522853    if (RT_FAILURE (rc))
    28532854        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