VirtualBox

Ignore:
Timestamp:
Aug 10, 2009 2:18:37 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: Corrected RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASE to work around solaris issue where RTThreadPreemptionIsEnabled doesn't notice that we're in a spinlock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c

    r22131 r22139  
    145145    spin_unlock_irqrestore(&pThis->Spinlock, pTmp->flFlags);
    146146
    147     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     147    RT_ASSERT_PREEMPT_CPUID();
    148148}
    149149RT_EXPORT_SYMBOL(RTSpinlockReleaseNoInts);
     
    176176    spin_unlock(&pThis->Spinlock);
    177177
    178     RT_ASSERT_PREEMPT_CPUID_SPIN_RELEASED();
     178    RT_ASSERT_PREEMPT_CPUID();
    179179}
    180180RT_EXPORT_SYMBOL(RTSpinlockRelease);
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