Lines Matching refs:pSession

87 int vboxIPCSessionStop(PVBOXIPCSESSION pSession);
89 static int vboxIPCHandleVBoxTrayRestart(PVBOXIPCSESSION pSession, PVBOXTRAYIPCHEADER pHdr)
91 AssertPtrReturn(pSession, VERR_INVALID_POINTER);
98 static int vboxIPCHandleShowBalloonMsg(PVBOXIPCSESSION pSession, PVBOXTRAYIPCHEADER pHdr)
100 AssertPtrReturn(pSession, VERR_INVALID_POINTER);
105 int rc = RTLocalIpcSessionRead(pSession->hSession, &ipcMsg, pHdr->uMsgLen,
121 static int vboxIPCHandleUserLastInput(PVBOXIPCSESSION pSession, PVBOXTRAYIPCHEADER pHdr)
123 AssertPtrReturn(pSession, VERR_INVALID_POINTER);
153 int rc2 = RTLocalIpcSessionWrite(pSession->hSession, &ipcRes, sizeof(ipcRes));
255 PVBOXIPCSESSION pSession;
256 RTListForEach(&pCtx->SessionList, pSession, VBOXIPCSESSION, Node)
258 int rc2 = vboxIPCSessionStop(pSession);
262 pSession, rc2));
475 PVBOXIPCSESSION pSession = (PVBOXIPCSESSION)RTMemAllocZ(sizeof(VBOXIPCSESSION));
476 if (pSession)
478 pSession->pCtx = pCtx;
479 pSession->hSession = hSession;
480 pSession->fTerminate = false;
481 pSession->hThread = NIL_RTTHREAD;
484 LogFlowFunc(("Creating thread for session %p ...\n", pSession));
485 rc = RTThreadCreate(&pSession->hThread, vboxIPCSessionThread,
486 pSession /* pvUser */, 0 /* Default stack size */,
491 RTListAppend(&pCtx->SessionList, &pSession->Node);
497 LogFlowFunc(("Failed closing session %p, rc=%Rrc\n", pSession, rc2));
499 LogFlowFunc(("Failed to create thread for session %p, rc=%Rrc\n", pSession, rc));
500 RTMemFree(pSession);
513 static int vboxIPCSessionStop(PVBOXIPCSESSION pSession)
515 AssertPtrReturn(pSession, VERR_INVALID_POINTER);
517 ASMAtomicWriteBool(&pSession->fTerminate, true);
520 ASMAtomicXchgHandle(&pSession->hSession, NIL_RTLOCALIPCSESSION, &hSession);