Lines Matching refs:clientInstance
61 AppSpawnReqMsgMgr *clientInstance = malloc(sizeof(AppSpawnReqMsgMgr) + RECV_BLOCK_LEN);
62 if (clientInstance == NULL) {
67 clientInstance->type = type;
68 clientInstance->msgNextId = 1;
69 clientInstance->timeout = GetDefaultTimeout(TIMEOUT_DEF);
70 clientInstance->maxRetryCount = MAX_RETRY_SEND_COUNT;
71 clientInstance->socketId = -1;
72 pthread_mutex_init(&clientInstance->mutex, NULL);
74 OH_ListInit(&clientInstance->recvBlock.node);
75 clientInstance->recvBlock.blockSize = RECV_BLOCK_LEN;
76 clientInstance->recvBlock.currentIndex = 0;
77 g_clientInstance[type] = clientInstance;