VirtualBox

Changeset 72639 in vbox for trunk/include


Ignore:
Timestamp:
Jun 21, 2018 1:51:44 PM (6 years ago)
Author:
vboxsync
Message:

IPRT,VMM: Try use KeShouldYieldProcessor to implement RTThreadPreemptIsPending on Windows. That'll save us a lot of pain with changing _KPRCB structures. bugref:5102

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r71491 r72639  
    26672667typedef  VOID    (NTAPI *PFNKEDEREGISTERPROCESSORCHANGECALLBACK)(PVOID pvCallback);
    26682668typedef  NTSTATUS (NTAPI *PFNKESETTARGETPROCESSORDPCEX)(KDPC *pDpc, PROCESSOR_NUMBER *pProcNumber);
     2669typedef  LOGICAL  (NTAPI *PFNKESHOULDYIELDPROCESSOR)(void);
    26692670
    26702671NTSYSAPI BOOLEAN  NTAPI ObFindHandleForObject(PEPROCESS pProcess, PVOID pvObject, POBJECT_TYPE pObjectType,
  • trunk/include/iprt/thread.h

    r71150 r72639  
    527527 *
    528528 * @returns true if pending, false if not.
    529  * @param       hThread         Must be NIL_RTTHREAD for now.
     529 * @param   hThread         Must be NIL_RTTHREAD for now.
     530 *
     531 * @note    If called with interrupts disabled, the NT kernel may temporarily
     532 *          re-enable them while checking.
    530533 */
    531534RTDECL(bool) RTThreadPreemptIsPending(RTTHREAD hThread);
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