Lines Matching refs:lock
27 INIT_LOCAL_API int ParamRWMutexCreate(ParamRWMutex *lock) in ParamRWMutexCreate() argument
29 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexCreate()
33 pthread_rwlock_init(&lock->rwlock, &rwlockatt); in ParamRWMutexCreate()
37 INIT_LOCAL_API int ParamRWMutexWRLock(ParamRWMutex *lock) in ParamRWMutexWRLock() argument
39 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexWRLock()
40 pthread_rwlock_wrlock(&lock->rwlock); in ParamRWMutexWRLock()
43 INIT_LOCAL_API int ParamRWMutexRDLock(ParamRWMutex *lock) in ParamRWMutexRDLock() argument
45 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexRDLock()
46 pthread_rwlock_rdlock(&lock->rwlock); in ParamRWMutexRDLock()
49 INIT_LOCAL_API int ParamRWMutexUnlock(ParamRWMutex *lock) in ParamRWMutexUnlock() argument
51 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexUnlock()
52 pthread_rwlock_unlock(&lock->rwlock); in ParamRWMutexUnlock()
56 INIT_LOCAL_API int ParamRWMutexDelete(ParamRWMutex *lock) in ParamRWMutexDelete() argument
58 PARAM_CHECK(lock != NULL, return -1, "Invalid lock"); in ParamRWMutexDelete()
59 int ret = pthread_rwlock_destroy(&lock->rwlock); in ParamRWMutexDelete()