[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 3/3] lib/uklock: introduce UK_MUTEX_INITIALIZER
Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> --- lib/uklock/include/uk/mutex.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/uklock/include/uk/mutex.h b/lib/uklock/include/uk/mutex.h index 88540eca..ff852b45 100644 --- a/lib/uklock/include/uk/mutex.h +++ b/lib/uklock/include/uk/mutex.h @@ -58,6 +58,9 @@ struct uk_mutex { struct uk_waitq wait; }; +#define UK_MUTEX_INITIALIZER(name) \ + { 0, __WAIT_QUEUE_INITIALIZER((name).wait) } + void uk_mutex_init(struct uk_mutex *m); static inline void uk_mutex_lock(struct uk_mutex *m) -- 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 |