[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 2/2] lib/uklock: introduce mutex_is_locked
Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> --- lib/uklock/include/uk/mutex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/uklock/include/uk/mutex.h b/lib/uklock/include/uk/mutex.h index 96635f6b..88540eca 100644 --- a/lib/uklock/include/uk/mutex.h +++ b/lib/uklock/include/uk/mutex.h @@ -91,6 +91,11 @@ static inline int uk_mutex_trylock(struct uk_mutex *m) return ret; } +static inline int uk_mutex_is_locked(struct uk_mutex *m) +{ + return m->locked; +} + static inline void uk_mutex_unlock(struct uk_mutex *m) { unsigned long irqf; -- 2.19.2 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |