VirtualBox

Ignore:
Timestamp:
May 19, 2009 1:28:56 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47475
Message:

TM: TMTimerPoll cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r19820 r19821  
    430430 * @remarks GIP uses ns ticks.
    431431 */
    432 DECLINLINE(uint64_t) tmTimerPollInternal(PVM pVM, PVMCPU pVCpu, uint64_t *pu64Delta)
     432DECL_FORCE_INLINE(uint64_t) tmTimerPollInternal(PVM pVM, PVMCPU pVCpu, uint64_t *pu64Delta)
    433433{
    434434    PVMCPU                  pVCpuDst      = &pVM->aCpus[pVM->tm.s.idTimerCpu];
     
    635635 * This function is called before FFs are checked in the inner execution EM loops.
    636636 *
    637  * @returns Virtual timer ticks to the next event. (I.e. 0 means that an timer
    638  *          has expired or some important rescheduling is pending.)
     637 * @returns true if timers are pending, false if not.
     638 *
    639639 * @param   pVM         Pointer to the shared VM structure.
    640640 * @param   pVCpu       Pointer to the shared VMCPU structure of the caller.
    641641 * @thread  The emulation thread.
    642642 */
    643 VMMDECL(uint64_t) TMTimerPoll(PVM pVM, PVMCPU pVCpu)
     643VMMDECL(bool) TMTimerPollBool(PVM pVM, PVMCPU pVCpu)
    644644{
    645645    AssertCompile(TMCLOCK_FREQ_VIRTUAL == 1000000000);
    646646    uint64_t off = 0;
    647647    tmTimerPollInternal(pVM, pVCpu, &off);
    648     return off;
     648    return off == 0;
     649}
     650
     651
     652/**
     653 * Set FF if we've passed the next virtual event.
     654 *
     655 * This function is called before FFs are checked in the inner execution EM loops.
     656 *
     657 * @param   pVM         Pointer to the shared VM structure.
     658 * @param   pVCpu       Pointer to the shared VMCPU structure of the caller.
     659 * @thread  The emulation thread.
     660 */
     661VMMDECL(void) TMTimerPollVoid(PVM pVM, PVMCPU pVCpu)
     662{
     663    uint64_t off;
     664    tmTimerPollInternal(pVM, pVCpu, &off);
    649665}
    650666
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