Changeset 21536 in vbox for trunk/src/VBox/Runtime/r0drv/darwin
- Timestamp:
- Jul 13, 2009 2:49:39 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50009
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/threadpreempt-r0drv-darwin.cpp
r20124 r21536 29 29 */ 30 30 31 31 32 /******************************************************************************* 32 33 * Header Files * … … 35 36 #include <iprt/thread.h> 36 37 38 #include <iprt/asm.h> 37 39 #include <iprt/assert.h> 38 40 #include <iprt/err.h> 39 41 #include <iprt/mp.h> 40 #include <iprt/asm.h>41 42 42 43 … … 52 53 } RTDARWINPREEMPTHACK; 53 54 typedef RTDARWINPREEMPTHACK *PRTDARWINPREEMPTHACK; 54 55 55 56 56 … … 130 130 131 131 132 RTDECL(bool) RTThreadPreemptIsPossible(void) 133 { 134 /* yes, kernel preemption is possible. */ 135 return true; 136 } 137 138 132 139 RTDECL(void) RTThreadPreemptDisable(PRTTHREADPREEMPTSTATE pState) 133 140 { … … 181 188 182 189 190 RTDECL(bool) RTThreadIsInInterrupt(RTTHREAD hThread) 191 { 192 Assert(hThread == NIL_RTTHREAD); NOREF(hThread); 193 /** @todo Solaris: Implement RTThreadIsInInterrupt. Required for guest 194 * additions! */ 195 return !ASMIntAreEnabled(); 196 } 197
Note:
See TracChangeset
for help on using the changeset viewer.