Changeset 19941 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- May 23, 2009 2:18:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c
r19937 r19941 72 72 { 73 73 Assert(hThread == NIL_RTTHREAD); 74 return !in_atomic() && !irqs_disabled(); 74 #ifdef CONFIG_PREEMPT 75 # ifdef preemptible 76 return preemptible(); 77 # else 78 return preempt_count() == 0 && !in_atomic() && !irqs_disabled(); 79 # endif 80 #else 81 return false; 82 #endif 75 83 } 76 84
Note:
See TracChangeset
for help on using the changeset viewer.