Changeset 21536 in vbox for trunk/src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c
- Timestamp:
- Jul 13, 2009 2:49:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c
r20554 r21536 35 35 36 36 #include <iprt/thread.h> 37 #include <iprt/asm.h> 38 #include <iprt/assert.h> 37 39 #include <iprt/err.h> 38 #include <iprt/assert.h>39 40 40 41 #include "internal/thread.h" … … 112 113 Assert(hThread == NIL_RTTHREAD); 113 114 114 return curthread->td_critnest == 0; 115 return curthread->td_critnest == 0 116 && ASMIntAreEnabled(); /** @todo is there a native freebsd function/macro for this? */ 115 117 } 116 118 … … 127 129 { 128 130 /* yes, RTThreadPreemptIsPending is reliable. */ 131 return true; 132 } 133 134 135 RTDECL(bool) RTThreadPreemptIsPossible(void) 136 { 137 /* yes, kernel preemption is possible. */ 129 138 return true; 130 139 } … … 150 159 } 151 160 161 162 RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread) 163 { 164 Assert(hThread == NIL_RTTHREAD); NOREF(hThread); 165 /** @todo FreeBSD: Implement RTThreadIsInInterrupt. Required for guest 166 * additions! */ 167 return !ASMIntAreEnabled(); 168 } 169
Note:
See TracChangeset
for help on using the changeset viewer.