Searched refs:mtx (Results 1 – 5 of 5) sorted by relevance
37 void mutex_init(struct mutex *mtx) in mutex_init() argument39 __mutex_init(mtx, /*pshared=*/false); in mutex_init()42 void mutex_init_pshared(struct mutex *mtx) in mutex_init_pshared() argument44 __mutex_init(mtx, /*pshared=*/true); in mutex_init_pshared()47 void mutex_destroy(struct mutex *mtx) in mutex_destroy() argument52 void mutex_lock(struct mutex *mtx) in mutex_lock() argument55 CHECK_ERR(pthread_mutex_lock(&mtx->lock)); in mutex_lock()58 void mutex_unlock(struct mutex *mtx) in mutex_unlock() argument61 CHECK_ERR(pthread_mutex_unlock(&mtx->lock)); in mutex_unlock()64 bool mutex_trylock(struct mutex *mtx) in mutex_trylock() argument[all …]
101 void mutex_init(struct mutex *mtx);106 void mutex_init_pshared(struct mutex *mtx);107 void mutex_destroy(struct mutex *mtx);109 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx);110 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx);112 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx);123 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);
12 mutex_init(&sem->mtx); in init_rwsem()22 mutex_destroy(&sem->mtx); in exit_rwsem()33 mutex_lock(&sem->mtx); in down_read()44 mutex_unlock(&sem->mtx); in up_read()55 mutex_lock(&sem->mtx); in down_write()66 mutex_unlock(&sem->mtx); in up_write()
15 struct mutex mtx; member
324 static __always_inline void mutex_lock(pthread_mutex_t *mtx) in mutex_lock() argument326 errno = pthread_mutex_lock(mtx); in mutex_lock()332 static __always_inline void mutex_unlock(pthread_mutex_t *mtx) in mutex_unlock() argument334 errno = pthread_mutex_unlock(mtx); in mutex_unlock()
Completed in 15 milliseconds