Lines Matching full: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 { struct
101 void mutex_init(struct mutex *mtx);
106 void mutex_init_pshared(struct mutex *mtx);
107 /* Initializes a mutex that may be recursively held on the same thread. */
108 void mutex_init_recursive(struct mutex *mtx);
109 void mutex_destroy(struct mutex *mtx);
111 void mutex_lock(struct mutex *mtx) EXCLUSIVE_LOCK_FUNCTION(*mtx);
112 void mutex_unlock(struct mutex *mtx) UNLOCK_FUNCTION(*mtx);
114 bool mutex_trylock(struct mutex *mtx) EXCLUSIVE_TRYLOCK_FUNCTION(true, *mtx);
125 void cond_wait(struct cond *cnd, struct mutex *mtx) EXCLUSIVE_LOCKS_REQUIRED(mtx);