Changeset 92253 in vbox
- Timestamp:
- Nov 7, 2021 2:02:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/thread.cpp
r90803 r92253 998 998 RTDECL(bool) RTThreadIsMain(RTTHREAD hThread) 999 999 { 1000 PRTTHREADINT pThread = rtThreadGet(hThread); 1001 if (pThread) 1002 { 1003 bool fRc = !!(pThread->fIntFlags & RTTHREADINT_FLAGS_MAIN); 1004 rtThreadRelease(pThread); 1005 return fRc; 1000 if (hThread != NIL_RTTHREAD) 1001 { 1002 PRTTHREADINT pThread = rtThreadGet(hThread); 1003 if (pThread) 1004 { 1005 bool fRc = !!(pThread->fIntFlags & RTTHREADINT_FLAGS_MAIN); 1006 rtThreadRelease(pThread); 1007 return fRc; 1008 } 1006 1009 } 1007 1010 return false;
Note:
See TracChangeset
for help on using the changeset viewer.