Lines Matching defs:pThread
239 PRTTHREADINT pThread = (PRTTHREADINT)pvValue;
240 if (pThread->fIntFlags & RTTHREADINT_FLAGS_ALIEN)
242 pthread_setspecific(g_SelfKey, pThread);
243 rtThreadTerminate(pThread, 0);
267 * @param pThread Pointer to the thread structure.
269 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
273 int rc = pthread_setspecific(g_SelfKey, pThread);
280 DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread)
282 if (pThread == (PRTTHREADINT)pthread_getspecific(g_SelfKey))
292 PRTTHREADINT pThread = (PRTTHREADINT)pvArgs;
300 pThread->tid = syscall(__NR_gettid);
309 int rc = pthread_setspecific(g_SelfKey, pThread);
310 AssertReleaseMsg(!rc, ("failed to set self TLS. rc=%d thread '%s'\n", rc, pThread->szName));
315 g_pfnThreadSetName(pThread->szName);
317 g_pfnThreadSetName(Self, pThread->szName);
324 rc = rtThreadMain(pThread, (uintptr_t)Self, &pThread->szName[0]);
332 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThread, PRTNATIVETHREAD pNativeThread)
337 if (!pThread->cbStack)
338 pThread->cbStack = 512*1024;
341 pThread->tid = -1;
354 rc = pthread_attr_setstacksize(&ThreadAttr, pThread->cbStack);
361 rc = pthread_create(&ThreadId, &ThreadAttr, rtThreadNativeMain, pThread);
377 PRTTHREADINT pThread = (PRTTHREADINT)pthread_getspecific(g_SelfKey);
379 return pThread;
387 PRTTHREADINT pThread = rtThreadGet(hThread);
388 AssertReturn(pThread, VERR_INVALID_HANDLE);
393 rc = pthread_kill((pthread_t)(uintptr_t)pThread->Core.Key, g_iSigPokeThread);
399 rtThreadRelease(pThread);