third_party/virtualbox/src/VBox/Runtime/common/misc/thread.cpp
/**
 * Removes the thread from the AVL tree.
 *
 * @param   pThread     The thread to remove.
 */
Removes the thread from the AVL tree.
@param   pThread     The thread to remove.
Removes the thread from the AVL tree . @param pThread The thread to remove .
static void rtThreadRemove(PRTTHREADINT pThread)
{
    RT_THREAD_LOCK_RW();
    if (ASMAtomicBitTestAndClear(&pThread->fIntFlags, RTTHREADINT_FLAG_IN_TREE_BIT))
        rtThreadRemoveLocked(pThread);
    RT_THREAD_UNLOCK_RW();
}
static void rtThreadRemove ( PRTTHREADINT pThread ) { RT_THREAD_LOCK_RW ( ) ; if ( ASMAtomicBitTestAndClear ( & pThread -> fIntFlags , RTTHREADINT_FLAG_IN_TREE_BIT ) ) rtThreadRemoveLocked ( pThread ) ; RT_THREAD_UNLOCK_RW ( ) ; }
Removes the thread from the AVL tree.
Removes the thread from the AVL tree .