Changeset 96052 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Aug 5, 2022 10:48:48 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152851
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/thread.cpp
r95200 r96052 394 394 #ifdef RT_WITH_ICONV_CACHE 395 395 rtStrIconvCacheInit(pThread); 396 #endif 397 #if defined(IPRT_NO_CRT) && defined(IN_RING3) 398 pThread->NoCrt.enmAllocType = RTNOCRTTHREADDATA::kAllocType_Embedded; 399 RTListInit(&pThread->NoCrt.ListEntry); 396 400 #endif 397 401 rc = RTSemEventMultiCreate(&pThread->EventUser); … … 465 469 ASMAtomicIncU32(&g_cThreadInTree); 466 470 ASMAtomicIncU32(&g_acRTThreadTypeStats[pThread->enmType]); 471 472 #if defined(IPRT_NO_CRT) && defined(IN_RING3) 473 RTTLS const iTlsPerThread = g_iTlsRtNoCrtPerThread; 474 if ( iTlsPerThread != NIL_RTTLS 475 && RTTlsGet(iTlsPerThread) == NULL) 476 RTTlsSet(iTlsPerThread, &pThread->NoCrt); 477 #endif 467 478 } 468 479 … … 687 698 */ 688 699 rtThreadRemove(pThread); 700 701 #if defined(IPRT_NO_CRT) && defined(IN_RING3) 702 RTTLS const iTlsPerThread = g_iTlsRtNoCrtPerThread; 703 if ( iTlsPerThread != NIL_RTTLS 704 && RTTlsGet(iTlsPerThread) == &pThread->NoCrt) 705 RTTlsSet(iTlsPerThread, &g_RtNoCrtPerThreadDummy); 706 #endif 707 689 708 rtThreadRelease(pThread); 690 709 }
Note:
See TracChangeset
for help on using the changeset viewer.