diff --git a/src/ds/flaglock.h b/src/ds/flaglock.h index 954adc0..6155d2b 100644 --- a/src/ds/flaglock.h +++ b/src/ds/flaglock.h @@ -63,7 +63,7 @@ namespace snmalloc * std::thread::id can be another solution but it does not * support `constexpr` initialisation on some platforms. */ - ThreadIdentity owner = nullptr; + std::atomic owner = nullptr; /** * @brief get_thread_identity