VirtualBox

Changeset 5349 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 17, 2007 11:56:26 AM (17 years ago)
Author:
vboxsync
Message:

need to take the cpu_lock before calling into cyclic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/timer-r0drv-solaris.c

    r4474 r5349  
    157157    timerSpec.cyt_interval = pTimer->u64NanoInterval == 0 ? u64First : pTimer->u64NanoInterval;
    158158   
    159     rtTimerSolarisStop(pTimer); /** @todo r=bird: can't happen. */
     159    mutex_enter(&cpu_lock);
    160160    pTimer->CyclicID = cyclic_add(&pTimer->CyclicInfo, &timerSpec);
     161    mutex_exit(&cpu_lock);
     162
    161163    return VINF_SUCCESS;
    162164}
     
    203205    if (pTimer->CyclicID != CYCLIC_NONE)
    204206    {
     207        mutex_enter(&cpu_lock);
    205208        cyclic_remove(pTimer->CyclicID);
     209        mutex_exit(&cpu_lock);
    206210        pTimer->CyclicID = CYCLIC_NONE;
    207211    }
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