VirtualBox

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


Ignore:
Timestamp:
Aug 20, 2013 12:54:45 PM (11 years ago)
Author:
vboxsync
Message:

Runtime/r0drv/threadctxhooks: Added an assertion.

File:
1 edited

Legend:

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

    r47734 r47907  
    7575 *                              current thread.
    7676 *
    77  * @remarks Called with the rq (runqueue) lock held and with preemption
    78  *          disabled!
     77 * @remarks Called with the rq (runqueue) lock held and with preemption and
     78 *          interrupts disabled!
    7979 */
    8080static void rtThreadCtxHooksLnxSchedOut(struct preempt_notifier *pPreemptNotifier, struct task_struct *pNext)
     
    105105    AssertPtr(pThis->pfnThreadCtxHook);
    106106    Assert(pThis->fRegistered);
     107    Assert(RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    107108
    108109    pThis->pfnThreadCtxHook(RTTHREADCTXEVENT_RESUMED, pThis->pvUser);
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