From 5a788adb1c92d21d4adbed592f829b242327731c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 12 Jul 2019 16:48:10 +0200 Subject: [PATCH] Add ATOMIC_VAR_INIT initializer to mutexatomics.h --- lib/isc/include/isc/mutexatomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/isc/include/isc/mutexatomic.h b/lib/isc/include/isc/mutexatomic.h index d88e5d0fca..c111081ee9 100644 --- a/lib/isc/include/isc/mutexatomic.h +++ b/lib/isc/include/isc/mutexatomic.h @@ -98,6 +98,8 @@ typedef struct atomic_bool_s { bool v; } atomic_bool; +#define ATOMIC_VAR_INIT(arg) \ + { .m = PTHREAD_MUTEX_INITIALIZER, .v = arg } #define atomic_init(obj, desired) \ { \