1
0
Fork 0

stdatomic.h: Add ATOMIC_VAR_INIT macro.

This commit is contained in:
Reimar Döffinger 2023-10-29 18:12:31 +01:00
parent ece74ceaaf
commit a473473fed
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ typedef struct {
} atomic_flag;
#define ATOMIC_FLAG_INIT {0}
#define ATOMIC_VAR_INIT(value) (value)
#define atomic_flag_test_and_set_explicit(object, order) \
__atomic_test_and_set((void *)(&((object)->value)), order)