Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

RTDECL ( RTNATIVETHREAD   ) 

Get the native thread handle of the current thread.

Returns:
Native thread handle.
Gets the native thread id of a IPRT thread.

Returns:
The native thread id.
Parameters:
Thread The IPRT thread.
Gets the native socket handle.

Returns:
The native socket handle or RTHCUINTPTR_MAX if not invalid.
Parameters:
hSocket The socket handle.
Gets the native thread id of a IPRT thread.

Returns:
The native thread id.
Parameters:
Thread The IPRT thread.

Definition at line 835 of file thread.cpp.

References AssertReturn, RTTHREADINT::Core, g_fpLIS, _AVLPVNodeCore::Key, NIL_RTNATIVETHREAD, rtThreadGet(), and rtThreadRelease().

{
    PRTTHREADINT pThread = rtThreadGet(Thread);
    if (pThread)
    {
        RTNATIVETHREAD NativeThread = (RTNATIVETHREAD)pThread->Core.Key;
        rtThreadRelease(pThread);
        return NativeThread;
    }
    return NIL_RTNATIVETHREAD;
}


Generated by  Doxygen 1.6.0   Back to index