27 #define ABSL_FLAGS_ATOMIC_GET(T) \ 28 T GetFlag(const absl::Flag<T>& flag) { \ 30 flag.internal.Read(&result, &flags_internal::FlagOps<T>); \ 34 #define ABSL_FLAGS_ATOMIC_GET(T) \ 35 T GetFlag(const absl::Flag<T>& flag) { \ 36 const int64_t r = flag.internal.atomic.load(std::memory_order_acquire); \ 37 if (r != flags_internal::CommandLineFlag::kAtomicInit) { \ 39 memcpy(&t, &r, sizeof(T)); \ 43 flag.internal.Read(&result, &flags_internal::FlagOps<T>); \ 50 #undef ABSL_FLAGS_ATOMIC_GET #define ABSL_FLAGS_ATOMIC_GET(T)
#define ABSL_FLAGS_INTERNAL_FOR_EACH_LOCK_FREE(A)