Lines Matching refs:hChildSession
378 HSession hChildSession = daemon->MallocSession(false, CONN_USB, this, sessionId);
379 if (!hChildSession) {
384 Base::StartWorkThread(&daemon->loopMain, daemon->SessionWorkThread, Base::FinishWorkThread, hChildSession);
391 hSessionInfo->sessionId = hChildSession->sessionId;
392 hSessionInfo->classInstance = hChildSession->classInstance;
393 hSessionInfo->classModule = hChildSession->classModule;
394 hSessionInfo->hSession = hChildSession;
410 HSession hChildSession = hSessionInfo->hSession;
411 if (hChildSession->childLoop.active_handles == 0) {
414 if (!hChildSession->isDead) {
416 Base::SendToPollFd(hChildSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size());
424 return hChildSession;
536 HSession hChildSession = nullptr;
549 hChildSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr);
550 if (!hChildSession) {
551 hChildSession = PrepareNewSession(sessionId, readBuf, readBytes);
552 if (!hChildSession) {
558 if (hChildSession->childCleared || hChildSession->isDead) {
559 WRITE_LOG(LOG_WARN, "session dead clr:%d - %d", hChildSession->childCleared, hChildSession->isDead);
562 uv_stream_t *stream = reinterpret_cast<uv_stream_t *>(&hChildSession->dataPipe[STREAM_MAIN]);
563 if ((childRet = SendToHdcStream(hChildSession, stream, readBuf, readBytes)) < 0) {