Lines Matching refs:pSession
1724 NiSession* pSession = NULL; in gnssNiResponseCommand() local
1727 pSession = &niData.sessionEs; in gnssNiResponseCommand()
1739 pSession = &niData.session; in gnssNiResponseCommand()
1742 if (pSession) { in gnssNiResponseCommand()
1745 pthread_mutex_lock(&pSession->tLock); in gnssNiResponseCommand()
1746 pSession->resp = mResponse; in gnssNiResponseCommand()
1747 pSession->respRecvd = true; in gnssNiResponseCommand()
1748 pthread_cond_signal(&pSession->tCond); in gnssNiResponseCommand()
1749 pthread_mutex_unlock(&pSession->tLock); in gnssNiResponseCommand()
2201 NiSession* pSession = (NiSession*)args; in niThreadProc() local
2207 pthread_mutex_lock(&pSession->tLock); in niThreadProc()
2210 expire_time.tv_sec = present_time.tv_sec + pSession->respTimeLeft; in niThreadProc()
2213 __func__, (long)expire_time.tv_sec, pSession->respTimeLeft); in niThreadProc()
2215 while (!pSession->respRecvd) { in niThreadProc()
2216 rc = pthread_cond_timedwait(&pSession->tCond, in niThreadProc()
2217 &pSession->tLock, in niThreadProc()
2220 pSession->resp = GNSS_NI_RESPONSE_NO_RESPONSE; in niThreadProc()
2227 "pthread_cond_timedwait = %d pSession->resp is %u", __func__, rc, pSession->resp); in niThreadProc()
2228 pSession->respRecvd = false; /* Reset the user response flag for the next session*/ in niThreadProc()
2233 GnssAdapter* adapter = pSession->adapter; in niThreadProc()
2238 if (NULL != pSession->rawRequest) { in niThreadProc()
2239 if (pSession->resp != GNSS_NI_RESPONSE_IGNORE) { in niThreadProc()
2240 resp = pSession->resp; in niThreadProc()
2241 rawRequest = pSession->rawRequest; in niThreadProc()
2244 free(pSession->rawRequest); in niThreadProc()
2246 pSession->rawRequest = NULL; in niThreadProc()
2248 pthread_mutex_unlock(&pSession->tLock); in niThreadProc()
2250 pSession->respTimeLeft = 0; in niThreadProc()
2251 pSession->reqID = 0; in niThreadProc()
2263 NiSession* pSession = NULL; in requestNiNotify() local
2285 pSession = &mNiData.sessionEs; in requestNiNotify()
2296 pSession = &mNiData.session; in requestNiNotify()
2300 if (pSession) { in requestNiNotify()
2302 pSession->rawRequest = (void*)data; in requestNiNotify()
2303 pSession->reqID = ++mNiData.reqIDCounter; in requestNiNotify()
2304 pSession->adapter = this; in requestNiNotify()
2306 int sessionId = pSession->reqID; in requestNiNotify()
2311 pSession->respTimeLeft = in requestNiNotify()
2315 rc = pthread_create(&pSession->thread, NULL, niThreadProc, pSession); in requestNiNotify()
2319 rc = pthread_detach(pSession->thread); in requestNiNotify()