/vbox/src/VBox/Runtime/generic/ |
H A D | tls-generic.cpp | 53 RTTLS iTls; local 54 int rc = RTTlsAllocEx(&iTls, NULL); 55 return RT_SUCCESS(rc) ? iTls : NIL_RTTLS; 63 int iTls = ASMBitFirstClear(&g_au32AllocatedBitmap[0], RTTHREAD_TLS_ENTRIES); local 64 if (iTls < 0) 69 if (!ASMAtomicBitTestAndSet(&g_au32AllocatedBitmap[0], iTls)) 71 g_apfnDestructors[iTls] = pfnDestructor; 72 *piTls = iTls; 82 RTR3DECL(int) RTTlsFree(RTTLS iTls) argument 84 if (iTls 98 RTTlsGet(RTTLS iTls) argument 106 RTTlsGetEx(RTTLS iTls, void **ppvValue) argument 122 RTTlsSet(RTTLS iTls, void *pvValue) argument [all...] |
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | tls-posix.cpp | 46 pthread_key_t iTls = (pthread_key_t)NIL_RTTLS; local 47 int rc = pthread_key_create(&iTls, NULL); 50 Assert(iTls != (pthread_key_t)NIL_RTTLS); 51 return iTls; 59 pthread_key_t iTls = (pthread_key_t)NIL_RTTLS; local 60 int rc = pthread_key_create(&iTls, pfnDestructor); 63 *piTls = iTls; 64 Assert((pthread_key_t)*piTls == iTls); 72 RTR3DECL(int) RTTlsFree(RTTLS iTls) argument 74 if (iTls 83 RTTlsGet(RTTLS iTls) argument 89 RTTlsGetEx(RTTLS iTls, void **ppvValue) argument 98 RTTlsSet(RTTLS iTls, void *pvValue) argument [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | tls-win.cpp | 46 DWORD iTls = TlsAlloc(); local 47 return iTls != TLS_OUT_OF_INDEXES ? (RTTLS)iTls : NIL_RTTLS; 54 DWORD iTls = TlsAlloc(); local 55 if (iTls != TLS_OUT_OF_INDEXES) 57 Assert((RTTLS)iTls != NIL_RTTLS); 58 *piTls = (RTTLS)iTls; 59 Assert((DWORD)*piTls == iTls); 67 RTR3DECL(int) RTTlsFree(RTTLS iTls) argument 69 if (iTls 77 RTTlsGet(RTTLS iTls) argument 83 RTTlsGetEx(RTTLS iTls, void **ppvValue) argument 98 RTTlsSet(RTTLS iTls, void *pvValue) argument [all...] |
/vbox/src/VBox/Runtime/r3/os2/ |
H A D | thread-os2.cpp | 255 int iTls = __libc_TLSAlloc(); local 256 if (iTls != -1) 259 || __libc_TLSDestructor(iTls, (void (*)(void *, int, unsigned))pfnDestructor, 0) != -1) 261 *piTls = iTls; 266 __libc_TLSFree(iTls); 276 RTR3DECL(int) RTTlsFree(RTTLS iTls) argument 278 if (iTls == NIL_RTTLS) 280 if (__libc_TLSFree(iTls) != -1) 286 RTR3DECL(void *) RTTlsGet(RTTLS iTls) argument 288 return __libc_TLSGet(iTls); 292 RTTlsGetEx(RTTLS iTls, void **ppvValue) argument 309 RTTlsSet(RTTLS iTls, void *pvValue) argument [all...] |
/vbox/include/iprt/ |
H A D | thread.h | 899 * @param iTls The index of the TLS entry. 901 RTR3DECL(int) RTTlsFree(RTTLS iTls); variable 910 * @param iTls The index of the TLS entry. 912 RTR3DECL(void *) RTTlsGet(RTTLS iTls); variable 918 * @param iTls The index of the TLS entry. 922 RTR3DECL(int) RTTlsGetEx(RTTLS iTls, void **ppvValue); 928 * @param iTls The index of the TLS entry. 933 RTR3DECL(int) RTTlsSet(RTTLS iTls, void *pvValue);
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | thread.h | 242 DECLHIDDEN(void) rtThreadClearTlsEntry(RTTLS iTls); variable
|
/vbox/src/VBox/Runtime/common/alloc/ |
H A D | memtracker.cpp | 148 RTTLS iTls; member in struct:RTMEMTRACKERINT 229 rc = RTTlsAllocEx(&pTracker->iTls, NULL); 253 RTTlsFree(pTracker->iTls); 274 PRTMEMTRACKERUSER pUser = (PRTMEMTRACKERUSER)RTTlsGet(pTracker->iTls); 291 int rc = RTTlsSet(pTracker->iTls, &pTracker->FallbackUser); 314 rc = RTTlsSet(pTracker->iTls, pUser);
|
/vbox/src/VBox/Runtime/common/misc/ |
H A D | thread.cpp | 1537 RTTLS iTls = (RTTLS)(uintptr_t)pvUser; local 1538 ASMAtomicWriteNullPtr(&pThread->apvTlsEntries[iTls]); 1547 * @param iTls The TLS entry. (valid) 1549 DECLHIDDEN(void) rtThreadClearTlsEntry(RTTLS iTls) argument 1552 RTAvlPVDoWithAll(&g_ThreadTree, true /* fFromLeft*/, rtThreadClearTlsEntryCallback, (void *)(uintptr_t)iTls);
|
/vbox/src/VBox/HostDrivers/Support/win/ |
H A D | SUPHardenedVerifyImage-win.cpp | 2051 DWORD iTls = TlsAlloc(); local 2052 if (iTls != TLS_OUT_OF_INDEXES) 2053 g_iTlsWinVerifyTrustRecursion = iTls;
|