VirtualBox

Changeset 19907 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
May 22, 2009 11:14:50 AM (16 years ago)
Author:
vboxsync
Message:

IPRT: RTThreadPreemptIsPending for linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/thread2-r0drv-linux.c

    r14465 r19907  
    5454}
    5555
     56
     57RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread)
     58{
     59# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 4)
     60    return test_tsk_thread_flag(current, TIF_NEED_RESCHED);
     61#else
     62    /** @todo get back to this if it matters. */
     63    return false;
     64#endif
     65}
     66
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette