Changeset 71127 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Feb 26, 2018 3:21:36 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121011
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/thread-win.cpp
r69111 r71127 377 377 } 378 378 379 380 /** 381 * Gets the native thread handle for a IPRT thread. 382 * 383 * @returns The thread handle. INVALID_HANDLE_VALUE on failure. 384 * @param hThread The IPRT thread handle. 385 * 386 * @note Windows only. 387 * @note Only valid after parent returns from the thread creation call. 388 */ 389 RTDECL(uintptr_t) RTThreadGetNativeHandle(RTTHREAD hThread) 390 { 391 PRTTHREADINT pThread = rtThreadGet(hThread); 392 if (pThread) 393 { 394 uintptr_t hHandle = pThread->hThread; 395 rtThreadRelease(pThread); 396 return hHandle; 397 } 398 return (uintptr_t)INVALID_HANDLE_VALUE; 399 } 400 RT_EXPORT_SYMBOL(RTThreadGetNativeHandle); 401
Note:
See TracChangeset
for help on using the changeset viewer.