VirtualBox

Changeset 22558 in vbox


Ignore:
Timestamp:
Aug 28, 2009 4:34:38 PM (15 years ago)
Author:
vboxsync
Message:

RTThreadIsInInterrupt/solaris: Use servicing_interrupt().

Location:
trunk/src/VBox/Runtime/r0drv/solaris
Files:
2 edited

Legend:

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

    r22437 r22558  
    176176RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread)
    177177{
    178     /** @todo it looks like checking for spl > LOCK_LEVEL and interrupts disabled
    179      *        is more accurate than this... */
    180     /* This is the best we currently can do here. :-( */
    181     return !RTThreadPreemptIsEnabled(hThread)
    182         && getpil() > 0;
     178    Assert(hThread == NIL_RTTHREAD);
     179    return servicing_interrupt() ? true : false;
    183180}
    184181
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c

    r22477 r22558  
    150150RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread)
    151151{
    152     /* This is the best we currently can do here. :-( */
    153     return !RTThreadPreemptIsEnabled(hThread)
    154         && getpil() > 0;
     152    Assert(hThread == NIL_RTTHREAD);
     153    return servicing_interrupt() ? true : false;
    155154}
    156155
    157 
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