Home
last modified time | relevance | path

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

/tools/perf/util/
A Dmutex.c37 void mutex_init(struct mutex *mtx) in mutex_init() argument
39 __mutex_init(mtx, /*pshared=*/false); in mutex_init()
42 void mutex_init_pshared(struct mutex *mtx) in mutex_init_pshared() argument
44 __mutex_init(mtx, /*pshared=*/true); in mutex_init_pshared()
47 void mutex_destroy(struct mutex *mtx) in mutex_destroy() argument
52 void mutex_lock(struct mutex *mtx) in mutex_lock() argument
55 CHECK_ERR(pthread_mutex_lock(&mtx->lock)); in mutex_lock()
58 void mutex_unlock(struct mutex *mtx) in mutex_unlock() argument
61 CHECK_ERR(pthread_mutex_unlock(&mtx->lock)); in mutex_unlock()
64 bool mutex_trylock(struct mutex *mtx) in mutex_trylock() argument
[all …]
A Dmutex.h101 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);
A Drwsem.c12 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()
A Drwsem.h15 struct mutex mtx; member
/tools/tracing/latency/
A Dlatency-collector.c324 static __always_inline void mutex_lock(pthread_mutex_t *mtx) in mutex_lock() argument
326 errno = pthread_mutex_lock(mtx); in mutex_lock()
332 static __always_inline void mutex_unlock(pthread_mutex_t *mtx) in mutex_unlock() argument
334 errno = pthread_mutex_unlock(mtx); in mutex_unlock()

Completed in 15 milliseconds