Home
last modified time | relevance | path

Searched refs:rwlock (Results 1 – 5 of 5) sorted by relevance

/base/startup/init/services/param/include/
Dparam_osadp.h138 #define PARAMSPACE_AREA_INIT_LOCK(workspace) ParamRWMutexCreate(&workspace->rwlock)
139 #define PARAMSPACE_AREA_RW_LOCK(workspace) ParamRWMutexWRLock(&workspace->rwlock)
140 #define PARAMSPACE_AREA_RD_LOCK(workspace) ParamRWMutexRDLock(&workspace->rwlock)
141 #define PARAMSPACE_AREA_RW_UNLOCK(workspace) ParamRWMutexUnlock(&workspace->rwlock)
143 #define PARAMSPACE_AREA_INIT_LOCK(rwlock) (void)(rwlock) argument
144 #define PARAMSPACE_AREA_RW_LOCK(rwlock) (void)(rwlock) argument
145 #define PARAMSPACE_AREA_RD_LOCK(rwlock) (void)(rwlock) argument
146 #define PARAMSPACE_AREA_RW_UNLOCK(rwlock) (void)(rwlock) argument
Dparam_common.h34 pthread_rwlock_t rwlock; member
111 ParamRWMutex rwlock; member
/base/startup/init/services/param/linux/
Dparam_osadp.c33 pthread_rwlock_init(&lock->rwlock, &rwlockatt); in ParamRWMutexCreate()
40 pthread_rwlock_wrlock(&lock->rwlock); in ParamRWMutexWRLock()
46 pthread_rwlock_rdlock(&lock->rwlock); in ParamRWMutexRDLock()
52 pthread_rwlock_unlock(&lock->rwlock); in ParamRWMutexUnlock()
59 int ret = pthread_rwlock_destroy(&lock->rwlock); in ParamRWMutexDelete()
/base/startup/init/services/param/liteos/
Dparam_osadp.c152 pthread_rwlock_init(&lock->rwlock, &rwlockatt); in ParamRWMutexCreate()
159 pthread_rwlock_wrlock(&lock->rwlock); in ParamRWMutexWRLock()
165 pthread_rwlock_rdlock(&lock->rwlock); in ParamRWMutexRDLock()
171 pthread_rwlock_unlock(&lock->rwlock); in ParamRWMutexUnlock()
178 uint32_t ret = pthread_rwlock_destroy(&lock->rwlock); in ParamRWMutexDelete()
/base/startup/init/services/param/base/
Dparam_trie.c111 ParamRWMutexDelete(&workSpace->rwlock); in CloseWorkSpace()