VirtualBox

Changeset 14465 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 21, 2008 3:04:40 PM (16 years ago)
Author:
vboxsync
Message:

thread2-r0drv-linux.c: RTThreadPreemptIsEnabled, return false if interrupts are disabled.

File:
1 edited

Legend:

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

    r14423 r14465  
    3939#include "internal/thread.h"
    4040
    41 /* @todo Implement
     41
     42/** @todo Later.
    4243RTDECL(RTTHREAD) RTThreadSelf(void)
    4344{
     
    4647*/
    4748
     49
    4850RTDECL(bool) RTThreadPreemptIsEnabled(RTTHREAD hThread)
    4951{
    5052    Assert(hThread == NIL_RTTHREAD);
    51     return !in_atomic();
     53    return !in_atomic() && !irqs_disabled();
    5254}
    53  
     55
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