Lines Matching refs:mutex
24 /* Documents if a shared field or global variable needs to be protected by a mutex. */
29 * a mutex when dereferencing the pointer.
61 /* Documents a function that expects a mutex to be held prior to entry. */
88 * A wrapper around the mutex implementation that allows perf to error check
91 struct LOCKABLE mutex {
96 * Statically initialized mutex, for the file scope ones. Error checking
105 #define DEFINE_MUTEX(name) struct mutex name = { .lock = __PERF_MUTEX_INITIALIZER }
137 void mutex_init(struct mutex *mtx);
142 void mutex_init_pshared(struct mutex *mtx);
143 /* Initializes a mutex that may be recursively held on the same thread. */
144 void mutex_init_recursive(struct mutex *mtx);
150 bool mutex_init_pshared_robust(struct mutex *mtx);
151 void mutex_destroy(struct mutex *mtx);
153 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx);
154 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx);
156 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx);
167 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);