Lines Matching refs:hSession
167 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr);
168 if (hSession == nullptr) {
171 if (hSession->hUART != nullptr) {
172 hSession->hUART->resetIO = true;
176 OnTransferError(hSession);
181 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr);
182 if (hSession == nullptr and create) {
183 hSession = PrepareNewSession(sessionId);
185 return hSession;
206 HSession hSession = daemon.MallocSession(false, CONN_SERIAL, this, sessionId);
207 if (!hSession) {
218 Base::FinishWorkThread, hSession);
220 HSession hSession = reinterpret_cast<HSession>(handle->data);
221 HdcDaemon &daemonSession = *reinterpret_cast<HdcDaemon *>(hSession->classInstance);
222 if (hSession->childLoop.active_handles == 0) {
226 if (!hSession->isDead) {
228 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size());
233 externInterface.TimerUvTask(&daemon.loopMain, hSession, funcNewSessionUp);
234 return hSession;
314 bool HdcDaemonUART::IsSendReady(HSession hSession)
316 if (isAlive and !hSession->isDead and uartHandle >= 0 and !hSession->hUART->resetIO) {
321 } else if (hSession->isDead) {
325 } else if (hSession->hUART->resetIO) {