35 log_statistics = 0x04,
42 log_mask = log_debug | log_info | log_statistics | log_trace | log_audit | log_warning | log_error | log_fatal,
44 log_level_default = log_audit | log_error | log_fatal,
45 log_level_fatal = log_audit | log_fatal,
46 log_level_error = log_trace | log_error | log_level_fatal,
47 log_level_warning = log_warning | log_level_error,
48 log_level_info = log_info | log_statistics | log_level_warning,
49 log_level_debug = log_debug | log_level_info,
51 log_is_running = 0x1'00,
52 time_stamp_utc_is_running = 0x2'00,
54 system_is_running = 0x1'000000'00,
55 system_is_shutting_down = 0x2'000000'00,
56 system_mask = system_is_running | system_is_shutting_down,
97 constexpr static bool is_always_lock_free = atomic_type::is_always_lock_free;
99 constexpr atomic()
noexcept =
default;
105 constexpr atomic(
value_type desired) noexcept : v(std::to_underlying(desired)) {}
112 void store(
value_type desired, std::memory_order order = std::memory_order::seq_cst)
noexcept
114 return v.
store(std::to_underlying(desired), order);
117 [[nodiscard]]
value_type load(std::memory_order order = std::memory_order::seq_cst)
const noexcept
131 reinterpret_cast<underlying_type_t<value_type>&
>(expected), std::to_underlying(desired), success, failure);
143 std::memory_order success,
144 std::memory_order failure)
noexcept
147 reinterpret_cast<underlying_type_t<value_type>&
>(expected), std::to_underlying(desired), success, failure);
153 std::memory_order order = std::memory_order::seq_cst)
noexcept
std::atomic< global_state_type > global_state
The global state of the hikogui framework.
Definition global_state.hpp:203