Lines Matching refs:pThread
1154 PVBOXSERVICECTRLSESSIONTHREAD pThread = (PVBOXSERVICECTRLSESSIONTHREAD)pvUser;
1155 AssertPtrReturn(pThread, VERR_INVALID_POINTER);
1157 uint32_t uSessionID = pThread->StartupInfo.uSessionID;
1181 pThread->fShutdown = true;
1202 rcWait = RTProcWaitNoResume(pThread->hProcess, RTPROCWAIT_FLAGS_NOBLOCK,
1216 if (ASMAtomicReadBool(&pThread->fShutdown))
1221 pThread->hProcess, uSessionID);
1225 pThread->StartupInfo.uProtocol, 2 /* uNumParms */ };
1230 pThread->hProcess, uSessionID, rc);
1235 rc = RTProcTerminate(pThread->hProcess);
1237 pThread->hProcess, rc);
1284 rc = RTProcTerminate(pThread->hProcess);
2158 * @param pThread Guest session thread to wait for.
2162 int GstCntlSessionThreadWait(PVBOXSERVICECTRLSESSIONTHREAD pThread,
2165 AssertPtrReturn(pThread, VERR_INVALID_POINTER);
2168 if (pThread->Thread == NIL_RTTHREAD)
2171 pThread));
2181 if (ASMAtomicReadBool(&pThread->fStarted))
2184 ASMAtomicXchgBool(&pThread->fShutdown, true);
2187 pThread->StartupInfo.uSessionID, uTimeoutMS);
2190 rc = RTThreadWait(pThread->Thread, uTimeoutMS, &rcThread);
2194 pThread->StartupInfo.uSessionID, rc);
2198 pThread->StartupInfo.uSessionID, rcThread);
2209 * @param pThread Session thread to destroy.
2212 int GstCntlSessionThreadDestroy(PVBOXSERVICECTRLSESSIONTHREAD pThread, uint32_t uFlags)
2214 AssertPtrReturn(pThread, VERR_INVALID_POINTER);
2216 int rc = GstCntlSessionThreadWait(pThread,
2220 RTListNodeRemove(&pThread->Node);
2222 RTMemFree(pThread);
2223 pThread = NULL;