Changeset 19821 in vbox for trunk/src/VBox/VMM/VMMAll/TMAll.cpp
- Timestamp:
- May 19, 2009 1:28:56 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47475
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/TMAll.cpp
r19820 r19821 430 430 * @remarks GIP uses ns ticks. 431 431 */ 432 DECL INLINE(uint64_t) tmTimerPollInternal(PVM pVM, PVMCPU pVCpu, uint64_t *pu64Delta)432 DECL_FORCE_INLINE(uint64_t) tmTimerPollInternal(PVM pVM, PVMCPU pVCpu, uint64_t *pu64Delta) 433 433 { 434 434 PVMCPU pVCpuDst = &pVM->aCpus[pVM->tm.s.idTimerCpu]; … … 635 635 * This function is called before FFs are checked in the inner execution EM loops. 636 636 * 637 * @returns Virtual timer ticks to the next event. (I.e. 0 means that an timer638 * has expired or some important rescheduling is pending.)637 * @returns true if timers are pending, false if not. 638 * 639 639 * @param pVM Pointer to the shared VM structure. 640 640 * @param pVCpu Pointer to the shared VMCPU structure of the caller. 641 641 * @thread The emulation thread. 642 642 */ 643 VMMDECL( uint64_t) TMTimerPoll(PVM pVM, PVMCPU pVCpu)643 VMMDECL(bool) TMTimerPollBool(PVM pVM, PVMCPU pVCpu) 644 644 { 645 645 AssertCompile(TMCLOCK_FREQ_VIRTUAL == 1000000000); 646 646 uint64_t off = 0; 647 647 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 */ 661 VMMDECL(void) TMTimerPollVoid(PVM pVM, PVMCPU pVCpu) 662 { 663 uint64_t off; 664 tmTimerPollInternal(pVM, pVCpu, &off); 649 665 } 650 666
Note:
See TracChangeset
for help on using the changeset viewer.