We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1057c5a commit 14987c5Copy full SHA for 14987c5
src/cxa_guard_impl.h
@@ -175,7 +175,7 @@ struct GuardObject {
175
/// Implements __cxa_guard_acquire
176
AcquireResult cxa_guard_acquire() {
177
AtomicInt<uint8_t> guard_byte(guard_byte_address);
178
- if (guard_byte.load(std::_AO_Acquire) == COMPLETE_BIT)
+ if (guard_byte.load(std::_AO_Acquire) != UNSET)
179
return INIT_IS_DONE;
180
return derived()->acquire_init_byte();
181
}
0 commit comments