mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
Add ATOMIC_VAR_INIT initializer to mutexatomics.h
This commit is contained in:
parent
728fc0ca25
commit
5a788adb1c
@ -98,6 +98,8 @@ typedef struct atomic_bool_s {
|
|||||||
bool v;
|
bool v;
|
||||||
} atomic_bool;
|
} atomic_bool;
|
||||||
|
|
||||||
|
#define ATOMIC_VAR_INIT(arg) \
|
||||||
|
{ .m = PTHREAD_MUTEX_INITIALIZER, .v = arg }
|
||||||
|
|
||||||
#define atomic_init(obj, desired) \
|
#define atomic_init(obj, desired) \
|
||||||
{ \
|
{ \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user