VirtualBox

Ignore:
Timestamp:
Jul 15, 2009 12:08:20 AM (15 years ago)
Author:
vboxsync
Message:

thread-r0drv-solaris.c: better interrupt context detection?

File:
1 edited

Legend:

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

    r21536 r21594  
    151151RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread)
    152152{
    153     Assert(hThread == NIL_RTTHREAD); NOREF(hThread);
    154     /** @todo Solaris: Implement RTThreadIsInInterrupt. Required for guest
    155      *        additions! */
    156     return !ASMIntAreEnabled();
     153    /* This is the best we currently can do here. :-( */
     154    return !RTThreadPreemptIsEnabled(hThread)
     155        && getpil() > 0
    157156}
    158157
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