Lines Matching refs:pSession

1635                 NiSession* pSession = NULL;  in gnssNiResponseCommand()  local
1638 pSession = &niData.sessionEs; in gnssNiResponseCommand()
1650 pSession = &niData.session; in gnssNiResponseCommand()
1653 if (pSession) { in gnssNiResponseCommand()
1656 pthread_mutex_lock(&pSession->tLock); in gnssNiResponseCommand()
1657 pSession->resp = mResponse; in gnssNiResponseCommand()
1658 pSession->respRecvd = true; in gnssNiResponseCommand()
1659 pthread_cond_signal(&pSession->tCond); in gnssNiResponseCommand()
1660 pthread_mutex_unlock(&pSession->tLock); in gnssNiResponseCommand()
2103 NiSession* pSession = (NiSession*)args; in niThreadProc() local
2109 pthread_mutex_lock(&pSession->tLock); in niThreadProc()
2112 expire_time.tv_sec = present_time.tv_sec + pSession->respTimeLeft; in niThreadProc()
2115 __func__, (long)expire_time.tv_sec, pSession->respTimeLeft); in niThreadProc()
2117 while (!pSession->respRecvd) { in niThreadProc()
2118 rc = pthread_cond_timedwait(&pSession->tCond, in niThreadProc()
2119 &pSession->tLock, in niThreadProc()
2122 pSession->resp = GNSS_NI_RESPONSE_NO_RESPONSE; in niThreadProc()
2129 "pthread_cond_timedwait = %d pSession->resp is %u", __func__, rc, pSession->resp); in niThreadProc()
2130 pSession->respRecvd = false; /* Reset the user response flag for the next session*/ in niThreadProc()
2135 GnssAdapter* adapter = pSession->adapter; in niThreadProc()
2140 if (NULL != pSession->rawRequest) { in niThreadProc()
2141 if (pSession->resp != GNSS_NI_RESPONSE_IGNORE) { in niThreadProc()
2142 resp = pSession->resp; in niThreadProc()
2143 rawRequest = pSession->rawRequest; in niThreadProc()
2146 free(pSession->rawRequest); in niThreadProc()
2148 pSession->rawRequest = NULL; in niThreadProc()
2150 pthread_mutex_unlock(&pSession->tLock); in niThreadProc()
2152 pSession->respTimeLeft = 0; in niThreadProc()
2153 pSession->reqID = 0; in niThreadProc()
2165 NiSession* pSession = NULL; in requestNiNotify() local
2187 pSession = &mNiData.sessionEs; in requestNiNotify()
2198 pSession = &mNiData.session; in requestNiNotify()
2202 if (pSession) { in requestNiNotify()
2204 pSession->rawRequest = (void*)data; in requestNiNotify()
2205 pSession->reqID = ++mNiData.reqIDCounter; in requestNiNotify()
2206 pSession->adapter = this; in requestNiNotify()
2208 int sessionId = pSession->reqID; in requestNiNotify()
2213 pSession->respTimeLeft = in requestNiNotify()
2217 rc = pthread_create(&pSession->thread, NULL, niThreadProc, pSession); in requestNiNotify()
2221 rc = pthread_detach(pSession->thread); in requestNiNotify()