Lines Matching refs:flag
15 #define DECLARE_FLAG(flag) extern atomic_t flag argument
16 #define DEFINE_FLAG(flag) atomic_t flag = (atomic_t) false argument
17 #define TEST_FLAG(flag) (bool)atomic_get(&flag) argument
18 #define SET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) true) argument
19 #define UNSET_FLAG(flag) (void)atomic_set(&flag, (atomic_t) false) argument
25 #define WAIT_FOR_FLAG(flag) \ argument
26 while (!(bool)atomic_get(&flag)) { \
29 #define WAIT_FOR_FLAG_UNSET(flag) \ argument
30 while ((bool)atomic_get(&flag)) { \
33 #define TAKE_FLAG(flag) \ argument
34 while (!(bool)atomic_cas(&flag, true, false)) { \