Changeset 22558 in vbox
- Timestamp:
- Aug 28, 2009 4:34:38 PM (15 years ago)
- 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 176 176 RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread) 177 177 { 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; 183 180 } 184 181 -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/thread-r0drv-solaris.c
r22477 r22558 150 150 RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread) 151 151 { 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; 155 154 } 156 155 157
Note:
See TracChangeset
for help on using the changeset viewer.