Home
last modified time | relevance | path

Searched refs:g_sessionMutex (Results 1 – 2 of 2) sorted by relevance

/base/security/device_auth/services/session_manager/src/
Ddev_session_mgr.c36 static HcMutex g_sessionMutex; variable
102 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 …]
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_session_manager.c34 static HcMutex *g_sessionMutex = NULL; variable
38 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 …]