Lines Matching refs:mutex
2 #include "mutex.h"
22 * A robust mutex whose owner died while holding it comes back as EOWNERDEAD,
26 static int mutex_take_over(struct mutex *mtx, int err, bool give_up)
31 pr_debug("mutex: taking over one left by a dead owner\n");
42 static bool __mutex_init(struct mutex *mtx, bool pshared, bool recursive, bool robust)
85 * glibc refuses a robust process shared mutex with ENOTSUP when
95 pr_debug("mutex: robust mutexes aren't available\n");
102 void mutex_init(struct mutex *mtx)
107 void mutex_init_pshared(struct mutex *mtx)
112 void mutex_init_recursive(struct mutex *mtx)
117 bool mutex_init_pshared_robust(struct mutex *mtx)
122 void mutex_destroy(struct mutex *mtx)
127 void mutex_lock(struct mutex *mtx)
134 void mutex_unlock(struct mutex *mtx)
140 bool mutex_trylock(struct mutex *mtx)
183 void cond_wait(struct cond *cnd, struct mutex *mtx)