Lines Matching refs:pThread

106     struct VBoxDtThread    *pThread;
133 pStackData->pThread = NULL; \
145 if (pStackData->pThread) \
146 VBoxDtReleaseThread(pStackData->pThread); \
738 if (pData->pThread)
740 AssertPtr(pData->pThread);
741 Assert(pData->pThread->hNative == RTThreadNativeSelf());
742 Assert(pData->pThread->uPid == RTProcSelf());
743 Assert(RTListIsEmpty(&pData->pThread->AgeEntry));
744 return pData->pThread;
756 struct VBoxDtThread *pThread = g_apThreadsHash[iHash];
757 while (pThread)
759 if (pThread->hNative == hNativeSelf)
761 if (pThread->uPid != uPid)
764 pThread->uPid = uPid;
765 pThread->t_dtrace_vtime = 0;
766 pThread->t_dtrace_start = 0;
767 pThread->t_dtrace_stop = 0;
768 pThread->t_dtrace_scrpc = 0;
769 pThread->t_dtrace_astpc = 0;
770 pThread->t_predcache = 0;
775 RTListNodeRemove(&pThread->AgeEntry);
776 pData->pThread = pThread;
779 return pThread;
782 pThread = pThread->pNext;
788 pThread = RTListGetLast(&g_ThreadAgeList, struct VBoxDtThread, AgeEntry);
789 AssertFatal(pThread);
790 RTListNodeRemove(&pThread->AgeEntry);
791 if (pThread->hNative != NIL_RTNATIVETHREAD)
793 uintptr_t iHash2 = (pThread->hNative * 2654435761U) % RT_ELEMENTS(g_apThreadsHash);
794 if (g_apThreadsHash[iHash2] == pThread)
795 g_apThreadsHash[iHash2] = pThread->pNext;
801 if (pPrev->pNext == pThread)
803 pPrev->pNext = pThread->pNext;
813 pThread->t_dtrace_vtime = 0;
814 pThread->t_dtrace_start = 0;
815 pThread->t_dtrace_stop = 0;
816 pThread->t_dtrace_scrpc = 0;
817 pThread->t_dtrace_astpc = 0;
818 pThread->t_predcache = 0;
819 pThread->hNative = hNativeSelf;
820 pThread->uPid = uPid;
825 pThread->pNext = g_apThreadsHash[iHash];
826 g_apThreadsHash[iHash] = pThread->pNext;
828 pData->pThread = pThread;
831 return pThread;
838 * @param pThread The thread to release.
841 static void VBoxDtReleaseThread(struct VBoxDtThread *pThread)
845 RTListAppend(&g_ThreadAgeList, &pThread->AgeEntry);