Lines Matching refs:pSession

1642                 NiSession* pSession = NULL;  in gnssNiResponseCommand()  local
1645 pSession = &niData.sessionEs; in gnssNiResponseCommand()
1657 pSession = &niData.session; in gnssNiResponseCommand()
1660 if (pSession) { in gnssNiResponseCommand()
1663 pthread_mutex_lock(&pSession->tLock); in gnssNiResponseCommand()
1664 pSession->resp = mResponse; in gnssNiResponseCommand()
1665 pSession->respRecvd = true; in gnssNiResponseCommand()
1666 pthread_cond_signal(&pSession->tCond); in gnssNiResponseCommand()
1667 pthread_mutex_unlock(&pSession->tLock); in gnssNiResponseCommand()
2097 NiSession* pSession = (NiSession*)args; in niThreadProc() local
2103 pthread_mutex_lock(&pSession->tLock); in niThreadProc()
2106 expire_time.tv_sec = present_time.tv_sec + pSession->respTimeLeft; in niThreadProc()
2109 __func__, (long)expire_time.tv_sec, pSession->respTimeLeft); in niThreadProc()
2111 while (!pSession->respRecvd) { in niThreadProc()
2112 rc = pthread_cond_timedwait(&pSession->tCond, in niThreadProc()
2113 &pSession->tLock, in niThreadProc()
2116 pSession->resp = GNSS_NI_RESPONSE_NO_RESPONSE; in niThreadProc()
2123 "pthread_cond_timedwait = %d pSession->resp is %u", __func__, rc, pSession->resp); in niThreadProc()
2124 pSession->respRecvd = false; /* Reset the user response flag for the next session*/ in niThreadProc()
2129 GnssAdapter* adapter = pSession->adapter; in niThreadProc()
2134 if (NULL != pSession->rawRequest) { in niThreadProc()
2135 if (pSession->resp != GNSS_NI_RESPONSE_IGNORE) { in niThreadProc()
2136 resp = pSession->resp; in niThreadProc()
2137 rawRequest = pSession->rawRequest; in niThreadProc()
2140 free(pSession->rawRequest); in niThreadProc()
2142 pSession->rawRequest = NULL; in niThreadProc()
2144 pthread_mutex_unlock(&pSession->tLock); in niThreadProc()
2146 pSession->respTimeLeft = 0; in niThreadProc()
2147 pSession->reqID = 0; in niThreadProc()
2159 NiSession* pSession = NULL; in requestNiNotify() local
2181 pSession = &mNiData.sessionEs; in requestNiNotify()
2192 pSession = &mNiData.session; in requestNiNotify()
2196 if (pSession) { in requestNiNotify()
2198 pSession->rawRequest = (void*)data; in requestNiNotify()
2199 pSession->reqID = ++mNiData.reqIDCounter; in requestNiNotify()
2200 pSession->adapter = this; in requestNiNotify()
2202 int sessionId = pSession->reqID; in requestNiNotify()
2207 pSession->respTimeLeft = in requestNiNotify()
2211 rc = pthread_create(&pSession->thread, NULL, niThreadProc, pSession); in requestNiNotify()
2215 rc = pthread_detach(pSession->thread); in requestNiNotify()