Home
last modified time | relevance | path

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

/ohos5.0/base/security/device_auth/services/session_manager/src/
H A Ddev_session_mgr.c35 static SessionInfoList g_sessionInfoList;
42 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in GetSessionInfo()
55 while (index < g_sessionInfoList.size(&(g_sessionInfoList))) { in RemoveTimeoutSession()
56 SessionInfo *sessionInfo = g_sessionInfoList.getp(&(g_sessionInfoList), index); in RemoveTimeoutSession()
67 g_sessionInfoList.eraseElement(&(g_sessionInfoList), sessionInfo, index); in RemoveTimeoutSession()
93 if (g_sessionInfoList.pushBackT(&g_sessionInfoList, newSessionInfo) == NULL) { in AddNewSessionToList()
107 g_sessionInfoList = CREATE_HC_VECTOR(SessionInfoList); in InitDevSessionManager()
116 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in DestroyDevSessionManager()
119 DESTROY_HC_VECTOR(SessionInfoList, &g_sessionInfoList); in DestroyDevSessionManager()
209 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in CloseDevSession()
[all …]
/ohos5.0/foundation/communication/ipc/services/dbinder/c/src/
H A Ddbinder_service.c79 static SessionInfoList g_sessionInfoList = {.mutex = PTHREAD_MUTEX_INITIALIZER}; variable
99 UtilsListInit(&g_sessionInfoList.sessionInfos); in InitDBinder()
390 pthread_mutex_lock(&g_sessionInfoList.mutex); in AttachSessionObject()
391 UtilsListAdd(&g_sessionInfoList.sessionInfos, &sessionInfo->list); in AttachSessionObject()
392 pthread_mutex_unlock(&g_sessionInfoList.mutex); in AttachSessionObject()
398 pthread_mutex_lock(&g_sessionInfoList.mutex); in DetachSessionObject()
400 pthread_mutex_unlock(&g_sessionInfoList.mutex); in DetachSessionObject()
406 pthread_mutex_lock(&g_sessionInfoList.mutex); in QuerySessionObject()
407 UTILS_DL_LIST_FOR_EACH_ENTRY(node, &g_sessionInfoList.sessionInfos, SessionInfo, list) in QuerySessionObject()
410 pthread_mutex_unlock(&g_sessionInfoList.mutex); in QuerySessionObject()
[all …]