VirtualBox

Ignore:
Timestamp:
Jun 17, 2011 10:17:38 AM (13 years ago)
Author:
vboxsync
Message:

Dev*: Timer locking fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPit-i8254.cpp

    r37515 r37526  
    977977            LogRel(("PIT: mode=%d count=%#x (%u) - %d.%02d Hz (ch=%d) (restore)\n",
    978978                    s->mode, s->count, s->count, PIT_FREQ / s->count, (PIT_FREQ * 100 / s->count) % 100, i));
     979            PDMCritSectEnter(&pThis->CritSect, VERR_IGNORED);
    979980            TMTimerSetFrequencyHint(s->CTX_SUFF(pTimer), PIT_FREQ / s->count);
     981            PDMCritSectLeave(&pThis->CritSect);
    980982        }
    981983        pThis->channels[i].cRelLogEntries = 0;
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