VirtualBox

Changeset 92507 in vbox for trunk/include


Ignore:
Timestamp:
Nov 19, 2021 1:57:29 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148373
Message:

IPRT/thread: Added RTThreadControlPokeSignal to help deal with RTTHREADFLAGS_NO_SIGNALS in NEM/linux mode. bugref:9044

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r92246 r92507  
    25122512# define RTThreadIsSelfKnown                            RT_MANGLER(RTThreadIsSelfKnown)
    25132513# define RTThreadNativeSelf                             RT_MANGLER(RTThreadNativeSelf)
     2514# define RTThreadControlPokeSignal                      RT_MANGLER(RTThreadControlPokeSignal) /* not-win not-os2 */
    25142515# define RTThreadPoke                                   RT_MANGLER(RTThreadPoke) /* not-win not-os2 */
    25152516# define RTThreadPreemptDisable                         RT_MANGLER(RTThreadPreemptDisable)     /* r0drv */
  • trunk/include/iprt/thread.h

    r90416 r92507  
    530530 */
    531531RTDECL(int) RTThreadPoke(RTTHREAD hThread);
     532
     533/**
     534 * Controls the masking of the signal used by RTThreadPoke on posix systems.
     535 *
     536 * This function is not available on non-posix systems.
     537 *
     538 * @returns IPRT status code.
     539 *
     540 * @param   hThread     The current thread.
     541 * @param   fEnable     Whether to enable poking (unblock) or to disable it
     542 *                      (block the signal).
     543 */
     544RTDECL(int) RTThreadControlPokeSignal(RTTHREAD hThread, bool fEnable);
     545
    532546
    533547# ifdef IN_RING0
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette