Home
last modified time | relevance | path

Searched refs:pMutex (Results 1 – 7 of 7) sorted by relevance

/external/chromium_org/net/third_party/nss/ssl/
Dsslmutex.c12 static SECStatus single_process_sslMutex_Init(sslMutex* pMutex) in single_process_sslMutex_Init() argument
14 PR_ASSERT(pMutex != 0 && pMutex->u.sslLock == 0 ); in single_process_sslMutex_Init()
16 pMutex->u.sslLock = PR_NewLock(); in single_process_sslMutex_Init()
17 if (!pMutex->u.sslLock) { in single_process_sslMutex_Init()
23 static SECStatus single_process_sslMutex_Destroy(sslMutex* pMutex) in single_process_sslMutex_Destroy() argument
25 PR_ASSERT(pMutex != 0); in single_process_sslMutex_Destroy()
26 PR_ASSERT(pMutex->u.sslLock!= 0); in single_process_sslMutex_Destroy()
27 if (!pMutex->u.sslLock) { in single_process_sslMutex_Destroy()
31 PR_DestroyLock(pMutex->u.sslLock); in single_process_sslMutex_Destroy()
35 static SECStatus single_process_sslMutex_Unlock(sslMutex* pMutex) in single_process_sslMutex_Unlock() argument
[all …]
/external/chromium_org/third_party/icu/source/common/
Dumutex.h66 #define UMTX_CHECK(pMutex, expression, result) \ argument
71 #define UMTX_CHECK(pMutex, expression, result) \ argument
72 umtx_lock(pMutex); \
74 umtx_unlock(pMutex)
/external/libnfc-nci/src/gki/ulinux/
Dgki_ulinux.c89 pthread_mutex_t* pMutex; /* for android*/ member
108 p_pthread_info->pCond, p_pthread_info->pMutex); in gki_task_entry()
216 …ntry, UINT8 task_id, INT8 *taskname, UINT16 *stack, UINT16 stacksize, void* pCondVar, void* pMutex) in GKI_create_task() argument
249 GKI_TRACE_3("GKI creating task %i, pCond/pMutex=%x/%x", task_id, pCondVar, pMutex); in GKI_create_task()
260 gki_pthread_info[task_id].pMutex = (pthread_mutex_t*)pMutex; in GKI_create_task()
633 if (p_pthread_info->pCond != NULL && p_pthread_info->pMutex != NULL) { in GKI_wait()
635 …_3("GKI_wait task=%i, pCond/pMutex = %x/%x", rtask, p_pthread_info->pCond, p_pthread_info->pMutex); in GKI_wait()
636 ret = pthread_mutex_lock(p_pthread_info->pMutex); in GKI_wait()
638 ret = pthread_mutex_unlock(p_pthread_info->pMutex); in GKI_wait()
639 p_pthread_info->pMutex = NULL; in GKI_wait()
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
Dgki_ulinux.c90 pthread_mutex_t* pMutex; /* for android*/ member
111 p_pthread_info->pCond, p_pthread_info->pMutex); in gki_task_entry()
219 …ntry, UINT8 task_id, INT8 *taskname, UINT16 *stack, UINT16 stacksize, void* pCondVar, void* pMutex) in GKI_create_task() argument
252 GKI_TRACE_3("GKI creating task %i, pCond/pMutex=%x/%x", task_id, pCondVar, pMutex); in GKI_create_task()
263 gki_pthread_info[task_id].pMutex = (pthread_mutex_t*)pMutex; in GKI_create_task()
655 if (p_pthread_info->pCond != NULL && p_pthread_info->pMutex != NULL) { in GKI_wait()
657 …_3("GKI_wait task=%i, pCond/pMutex = %x/%x", rtask, p_pthread_info->pCond, p_pthread_info->pMutex); in GKI_wait()
658 ret = pthread_mutex_lock(p_pthread_info->pMutex); in GKI_wait()
660 ret = pthread_mutex_unlock(p_pthread_info->pMutex); in GKI_wait()
661 p_pthread_info->pMutex = NULL; in GKI_wait()
/external/chromium_org/third_party/sqlite/src/src/
Dtest_quota.c151 sqlite3_mutex *pMutex; member
164 static void quotaEnter(void){ sqlite3_mutex_enter(gQuota.pMutex); } in quotaEnter()
165 static void quotaLeave(void){ sqlite3_mutex_leave(gQuota.pMutex); } in quotaLeave()
581 gQuota.pMutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); in sqlite3_quota_initialize()
582 if( !gQuota.pMutex ){ in sqlite3_quota_initialize()
636 sqlite3_mutex_free(gQuota.pMutex); in sqlite3_quota_shutdown()
Dtest_multiplex.c159 sqlite3_mutex *pMutex; member
177 static void multiplexEnter(void){ sqlite3_mutex_enter(gMultiplex.pMutex); } in multiplexEnter()
178 static void multiplexLeave(void){ sqlite3_mutex_leave(gMultiplex.pMutex); } in multiplexLeave()
906 gMultiplex.pMutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); in sqlite3_multiplex_initialize()
907 if( !gMultiplex.pMutex ){ in sqlite3_multiplex_initialize()
912 sqlite3_mutex_free(gMultiplex.pMutex); in sqlite3_multiplex_initialize()
975 sqlite3_mutex_free(gMultiplex.pMutex); in sqlite3_multiplex_shutdown()
/external/icu4c/common/
Dumutex.h113 #define UMTX_CHECK(pMutex, expression, result) \ argument