VirtualBox

Ignore:
Timestamp:
Jul 13, 2009 4:41:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50025
Message:

thread-r0drv-linux.c: Make sure we return boolean.

File:
1 edited

Legend:

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

    r21536 r21552  
    109109    Assert(hThread == NIL_RTTHREAD);
    110110#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 4)
    111     return test_tsk_thread_flag(current, TIF_NEED_RESCHED);
     111    return !!test_tsk_thread_flag(current, TIF_NEED_RESCHED);
    112112
    113113#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 20)
    114     return need_resched();
     114    return !!need_resched();
    115115
    116116#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 1, 110)
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