VirtualBox

Changeset 47572 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 7, 2013 9:51:45 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87772
Message:

Runtime/threadctxhooks: RTThreadCtxHooksAreRegistered().

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r47516 r47572  
    15921592# define RTThreadCreateF                                RT_MANGLER(RTThreadCreateF)
    15931593# define RTThreadCreateV                                RT_MANGLER(RTThreadCreateV)
     1594# define RTThreadCtxHooksAreRegistered                  RT_MANGLER(RTThreadCtxHooksAreRegistered)  /* r0drv */
    15941595# define RTThreadCtxHooksCreate                         RT_MANGLER(RTThreadCtxHooksCreate)         /* r0drv */
    15951596# define RTThreadCtxHooksDeregister                     RT_MANGLER(RTThreadCtxHooksDeregister)     /* r0drv */
  • trunk/include/iprt/thread.h

    r47370 r47572  
    637637 *
    638638 * @returns New reference count.
    639  * @retval  0 if the thread-context hook was freed or the handle was
     639 * @retval  0 if the thread-context hook was freed or @a hThreadCtx is
    640640 *          NIL_RTTHREADCTX.
    641641 * @retval  UINT32_MAX is returned if the handle is invalid (asserted).
    642642 *
    643  * @param   phThreadCtx         Pointer to the thread-context handle (can be
    644  *                              NIL_RTTHREADCTX).
     643 * @param   hThreadCtx          The thread-context handle.
    645644 *
    646645 * @remarks This can be called from any thread but must be called with
     
    654653 *
    655654 * @returns IPRT status code.
    656  * @param   phThreadCtx         Poinner to the thread-context handle.
     655 * @param   hThreadCtx          The thread-context handle.
    657656 * @param   pfnThreadHook       Pointer to a thread-context hook (a callback)
    658657 *                              for all thread-context events.
     
    667666 *
    668667 * @returns IPRT status code.
    669  * @param   phThreadCtx         Pointer to the thread-context handle.
     668 * @param   hThreadCtx          The thread-context handle.
    670669 *
    671670 * @remarks Can be called with preemption disabled.
    672671 */
    673672RTDECL(int) RTThreadCtxHooksDeregister(RTTHREADCTX hThreadCtx);
     673
     674/**
     675 * Are thread-context hooks registered for the thread?
     676 *
     677 * @returns true if registered, false if not supported or not registered.
     678 * @param   hThreadCtx          The thread-context handle.
     679 *
     680 * @remarks Can be called from any thread (but possibility of races when
     681 *          it's not the current thread!)
     682 */
     683RTDECL(bool) RTThreadCtxHooksAreRegistered(RTTHREADCTX hThreadCtx);
    674684
    675685# endif /* 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