VirtualBox

Changeset 6296 in vbox


Ignore:
Timestamp:
Jan 9, 2008 1:11:37 PM (17 years ago)
Author:
vboxsync
Message:

LED and Network Config interfaces added. Fix in TMAll.cpp: Assertions in PENDING_STOP_SCHEDULE could be
triggered erroneously when a timer stop is being scheduled by EMT and another thread sets the timer.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformat.cpp

    r5999 r6296  
    220220     * Special (0/0x).
    221221     */
    222     if (fFlags & RTSTR_F_SPECIAL && (uiBase % 8) == 0)
     222    if ((fFlags & RTSTR_F_SPECIAL) && (uiBase % 8) == 0)
    223223    {
    224224        psz[i++] = '0';
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r6084 r6296  
    508508
    509509            case TMTIMERSTATE_PENDING_SCHEDULE:
     510                if (tmTimerTry(pTimer, TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE, enmState))
     511                {
     512                    Assert(!pTimer->offPrev);
     513                    Assert(!pTimer->offNext);
     514                    pTimer->u64Expire = u64Expire;
     515                    TM_SET_STATE(pTimer, TMTIMERSTATE_PENDING_SCHEDULE);
     516                    tmSchedule(pTimer);
     517                    STAM_PROFILE_STOP(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerSet), a);
     518                    return VINF_SUCCESS;
     519                }
     520                break;
     521
     522
    510523            case TMTIMERSTATE_PENDING_STOP_SCHEDULE:
    511524                if (tmTimerTry(pTimer, TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE, enmState))
    512525                {
    513                     Assert(!pTimer->offPrev);
    514                     Assert(!pTimer->offNext);
     526                    /* The timer is possibly being excluded from the active list atm */
     527                    ///Assert(!pTimer->offPrev);
     528                    ///Assert(!pTimer->offNext);
    515529                    pTimer->u64Expire = u64Expire;
    516530                    TM_SET_STATE(pTimer, TMTIMERSTATE_PENDING_SCHEDULE);
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