VirtualBox

Changeset 47370 in vbox


Ignore:
Timestamp:
Jul 24, 2013 12:35:39 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87517
Message:

iprt/thread.h: Define/document the return values more explicitly when NIL_RTHREADCTX handles are involved.

Location:
trunk
Files:
2 edited

Legend:

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

    r47352 r47370  
    636636 * Releases a reference to a thread-context hook.
    637637 *
    638  * @returns New reference count, if 0 the thread-context hook was freed.
    639  *          UINT32_MAX is returned if the handle is invalid (asserted).
    640  * @param   phThreadCtx         Pointer to the thread-context handle.
     638 * @returns New reference count.
     639 * @retval  0 if the thread-context hook was freed or the handle was
     640 *          NIL_RTTHREADCTX.
     641 * @retval  UINT32_MAX is returned if the handle is invalid (asserted).
     642 *
     643 * @param   phThreadCtx         Pointer to the thread-context handle (can be
     644 *                              NIL_RTTHREADCTX).
    641645 *
    642646 * @remarks This can be called from any thread but must be called with
  • trunk/src/VBox/Runtime/r0drv/linux/threadctxhooks-r0drv-linux.c

    r47352 r47370  
    172172    if (pThis == NIL_RTTHREADCTX)
    173173        return 0;
     174
    174175    AssertPtr(pThis);
    175176    AssertMsgReturn(pThis->u32Magic == RTTHREADCTXINT_MAGIC, ("pThis->u32Magic=%RX32 pThis=%p\n", pThis->u32Magic, pThis),
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