Searched refs:g_sessionMutex (Results 1 – 2 of 2) sorted by relevance
36 static HcMutex g_sessionMutex; variable102 int32_t res = InitHcMutex(&g_sessionMutex); in InitDevSessionManager()115 g_sessionMutex.lock(&g_sessionMutex); in DestroyDevSessionManager()120 g_sessionMutex.unlock(&g_sessionMutex); in DestroyDevSessionManager()121 DestroyHcMutex(&g_sessionMutex); in DestroyDevSessionManager()126 g_sessionMutex.lock(&g_sessionMutex); in IsSessionExist()129 g_sessionMutex.unlock(&g_sessionMutex); in IsSessionExist()139 g_sessionMutex.lock(&g_sessionMutex); in OpenDevSession()143 g_sessionMutex.unlock(&g_sessionMutex); in OpenDevSession()150 g_sessionMutex.unlock(&g_sessionMutex); in OpenDevSession()[all …]
34 static HcMutex *g_sessionMutex = NULL; variable38 if (g_sessionMutex == NULL) { in CreateKeyAgreeSessionMgr()39 g_sessionMutex = (HcMutex *)HcMalloc(sizeof(HcMutex), 0); in CreateKeyAgreeSessionMgr()40 if (g_sessionMutex == NULL) { in CreateKeyAgreeSessionMgr()44 if (InitHcMutex(g_sessionMutex) != HC_SUCCESS) { in CreateKeyAgreeSessionMgr()46 HcFree(g_sessionMutex); in CreateKeyAgreeSessionMgr()47 g_sessionMutex = NULL; in CreateKeyAgreeSessionMgr()51 g_sessionMutex->lock(g_sessionMutex); in CreateKeyAgreeSessionMgr()56 g_sessionMutex->unlock(g_sessionMutex); in CreateKeyAgreeSessionMgr()66 if (g_sessionMutex != NULL) { in DestroyKeyAgreeSessionMgr()[all …]