Changeset 13262 in vbox
- Timestamp:
- Oct 14, 2008 1:09:04 PM (16 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/thread-r0drv-nt.cpp
r13254 r13262 36 36 #include <iprt/thread.h> 37 37 #include <iprt/err.h> 38 #include <iprt/assert.h> 39 #include <iprt/asm.h> 38 40 39 41 __BEGIN_DECLS … … 76 78 Assert(hThread == NIL_RTTHREAD); 77 79 KIRQL Irql = KeGetCurrentIrql(); 78 return Irql <= APC_LEVEL; 80 if (Irql > APC_LEVEL) 81 return false; 82 #if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) 83 if (!(ASMGetFlags() & 0x00000200 /* X86_EFL_IF */)) 84 return false; 85 #endif 86 return true; 79 87 } 80 88 -
trunk/src/VBox/Runtime/r0drv/solaris/thread-r0drv-solaris.c
r13254 r13262 36 36 #include <iprt/thread.h> 37 37 #include <iprt/err.h> 38 #include <iprt/asm.h> 38 39 #include <iprt/assert.h> 39 40 … … 102 103 { 103 104 Assert(hThread == NIL_RTTHREAD); 104 return curthread->t_preempt == 0; 105 if (curthread->t_preempt != 0) 106 return false; 107 #if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) 108 if (!(ASMGetFlags() & 0x00000200 /* X86_EFL_IF */)) 109 return false; 110 #endif 111 return true; 105 112 } 106 113
Note:
See TracChangeset
for help on using the changeset viewer.