VirtualBox

Changeset 19507 in vbox


Ignore:
Timestamp:
May 7, 2009 8:58:49 PM (16 years ago)
Author:
vboxsync
Message:

TM: TMTimerDestroy -> TMR3TimerDestroy. (trying to simplify)

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/tm.h

    r19500 r19507  
    181181VMMDECL(PTMTIMERR0) TMTimerR0Ptr(PTMTIMER pTimer);
    182182VMMDECL(PTMTIMERRC) TMTimerRCPtr(PTMTIMER pTimer);
    183 VMMDECL(int)      TMTimerDestroy(PTMTIMER pTimer);
    184183VMMDECL(int)      TMTimerSet(PTMTIMER pTimer, uint64_t u64Expire);
    185184VMMDECL(int)      TMTimerSetMillies(PTMTIMER pTimer, uint32_t cMilliesToNext);
     
    223222VMMR3DECL(int)    TMR3TimerCreateInternal(PVM pVM, TMCLOCK enmClock, PFNTMTIMERINT pfnCallback, void *pvUser, const char *pszDesc, PPTMTIMERR3 ppTimer);
    224223VMMR3DECL(PTMTIMERR3) TMR3TimerCreateExternal(PVM pVM, TMCLOCK enmClock, PFNTMTIMEREXT pfnCallback, void *pvUser, const char *pszDesc);
     224VMMR3DECL(int)    TMR3TimerDestroy(PTMTIMER pTimer);
    225225VMMR3DECL(int)    TMR3TimerDestroyDevice(PVM pVM, PPDMDEVINS pDevIns);
    226226VMMR3DECL(int)    TMR3TimerDestroyDriver(PVM pVM, PPDMDRVINS pDrvIns);
  • trunk/src/VBox/Devices/Audio/audio.c

    r19061 r19507  
    17061706    else {
    17071707        /* XXX */
    1708         rc = TMTimerDestroy (s->ts);
     1708        rc = TMR3TimerDestroy (s->ts);
    17091709        return rc;
    17101710    }
  • trunk/src/VBox/Devices/vl_vbox.h

    r12910 r19507  
    9090#define qemu_get_clock(enmClock)                TMR3Clock((PVM)cpu_single_env->pVM, enmClock)
    9191#define qemu_new_timer(clock, callback, user)   (QEMUTimer *)TMR3TimerCreateExternal((PVM)cpu_single_env->pVM, clock, callback, user, __FUNCTION__ )
    92 #define qemu_free_timer(timer)                  TMTimerDestroy(timer)
     92#define qemu_free_timer(timer)                  TMR3TimerDestroy(timer)
    9393#define qemu_del_timer(timer)                   TMTimerStop(timer)
    9494#define qemu_mod_timer(timer, expire)           TMTimerSet(timer, (uint64_t)expire)
  • trunk/src/VBox/VMM/PDMQueue.cpp

    r19449 r19507  
    127127            {
    128128                AssertMsgFailed(("TMTimerSetMillies failed rc=%Rrc\n", rc));
    129                 int rc2 = TMTimerDestroy(pQueue->pTimer); AssertRC(rc2);
     129                int rc2 = TMR3TimerDestroy(pQueue->pTimer); AssertRC(rc2);
    130130            }
    131131        }
     
    438438    if (pQueue->pTimer)
    439439    {
    440         TMTimerDestroy(pQueue->pTimer);
     440        TMR3TimerDestroy(pQueue->pTimer);
    441441        pQueue->pTimer = NULL;
    442442    }
  • trunk/src/VBox/VMM/TM.cpp

    r19500 r19507  
    13521352            &&  pDestroy->u.Dev.pDevIns == pDevIns)
    13531353        {
    1354             int rc = TMTimerDestroy(pDestroy);
     1354            int rc = TMR3TimerDestroy(pDestroy);
    13551355            AssertRC(rc);
    13561356        }
     
    13851385            &&  pDestroy->u.Drv.pDrvIns == pDrvIns)
    13861386        {
    1387             int rc = TMTimerDestroy(pDestroy);
     1387            int rc = TMR3TimerDestroy(pDestroy);
    13881388            AssertRC(rc);
    13891389        }
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r19502 r19507  
    537537
    538538
     539#ifdef IN_RING3 /* Kept here until properly cleaned up to not use any of the local functions. */
    539540/**
    540541 * Destroy a timer
     
    543544 * @param   pTimer          Timer handle as returned by one of the create functions.
    544545 */
    545 VMMDECL(int) TMTimerDestroy(PTMTIMER pTimer)
     546VMMR3DECL(int) TMR3TimerDestroy(PTMTIMER pTimer)
    546547{
    547548    int cRetries = 1000;
     
    632633    return VERR_INTERNAL_ERROR;
    633634}
     635#endif /* IN_RING3 */
    634636
    635637
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