Lines Matching defs:pThread

83     PRTTHREADINT pThread = (PRTTHREADINT)TlsGetValue(g_dwSelfTLS);
84 if ( pThread
85 && (pThread->fIntFlags & RTTHREADINT_FLAGS_ALIEN))
87 rtThreadTerminate(pThread, 0);
93 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread)
95 if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS))
98 if ((HANDLE)pThread->hThread != INVALID_HANDLE_VALUE)
100 CloseHandle((HANDLE)pThread->hThread);
101 pThread->hThread = (uintptr_t)INVALID_HANDLE_VALUE;
106 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
108 if (!TlsSetValue(g_dwSelfTLS, pThread))
111 rtThreadWinTellDebuggerThreadName(GetCurrentThreadId(), pThread->szName);
116 DECLHIDDEN(void) rtThreadNativeInformDebugger(PRTTHREADINT pThread)
118 rtThreadWinTellDebuggerThreadName((uint32_t)(uintptr_t)pThread->Core.Key, pThread->szName);
245 PRTTHREADINT pThread = (PRTTHREADINT)pvArgs;
247 if (!TlsSetValue(g_dwSelfTLS, pThread))
248 AssertReleaseMsgFailed(("failed to set self TLS. lasterr=%d thread '%s'\n", GetLastError(), pThread->szName));
250 rtThreadWinTellDebuggerThreadName(dwThreadId, &pThread->szName[0]);
252 int rc = rtThreadMain(pThread, dwThreadId, &pThread->szName[0]);
261 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread)
263 AssertReturn(pThread->cbStack < ~(unsigned)0, VERR_INVALID_PARAMETER);
268 pThread->hThread = (uintptr_t)INVALID_HANDLE_VALUE;
270 uintptr_t hThread = _beginthreadex(NULL, (unsigned)pThread->cbStack, rtThreadNativeMain, pThread, 0, &uThreadId);
273 pThread->hThread = hThread;
283 PRTTHREADINT pThread = (PRTTHREADINT)TlsGetValue(g_dwSelfTLS);
285 return pThread;