VirtualBox

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


Ignore:
Timestamp:
Sep 12, 2013 10:35:34 PM (11 years ago)
Author:
vboxsync
Message:

r0drv/linux: todos.

File:
1 edited

Legend:

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

    r44528 r48462  
    8888    yield();
    8989#else
     90    /** @todo r=ramshankar: Can we use cond_resched() instead?  */
    9091    set_current_state(TASK_RUNNING);
    9192    sys_sched_yield();
     
    160161RTDECL(bool) RTThreadPreemptIsPossible(void)
    161162{
     163    /** @todo r=ramshankar: What about CONFIG_PREEMPT_VOLUNTARY? That can preempt
     164     *        too but does so in voluntarily in explicit preemption points. */
    162165#ifdef CONFIG_PREEMPT
    163166    return true;    /* yes, kernel preemption is possible. */
     
    175178    Assert(pState->u32Reserved == 0);
    176179    pState->u32Reserved = 42;
     180    /* This ASSUMES that CONFIG_PREEMPT_COUNT is always defined with CONFIG_PREEMPT. */
    177181    preempt_disable();
    178182    RT_ASSERT_PREEMPT_CPUID_DISABLE(pState);
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