Changeset 19912 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- May 22, 2009 2:00:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c
r19907 r19912 57 57 RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread) 58 58 { 59 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 4) 59 Assert(hThread == NIL_RTTHREAD); 60 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 4) 60 61 return test_tsk_thread_flag(current, TIF_NEED_RESCHED); 62 63 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 20) 64 return need_resched(); 65 66 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 1, 110) 67 return current->need_resched != 0; 68 61 69 #else 62 /** @todo get back to this if it matters. */ 63 return false; 70 return need_resched != 0; 64 71 #endif 65 72 }
Note:
See TracChangeset
for help on using the changeset viewer.