Lines Matching defs:mutex
24 /* Documents if a shared field or global variable needs to be protected by a mutex. */
29 * a mutex when dereferencing the pointer.
49 /* Documents a function that expects a mutex to be held prior to entry. */
69 * A wrapper around the mutex implementation that allows perf to error check
72 struct LOCKABLE mutex {
82 void mutex_init(struct mutex *mtx);
87 void mutex_init_pshared(struct mutex *mtx);
88 void mutex_destroy(struct mutex *mtx);
90 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx);
91 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx);
93 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx);
104 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);