Fix flag lock race condition in Debug.
This commit is contained in:
committed by
Matthew Parkinson
parent
be85d53c20
commit
91d500baf8
@@ -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<ThreadIdentity> owner = nullptr;
|
||||
|
||||
/**
|
||||
* @brief get_thread_identity
|
||||
|
||||
Reference in New Issue
Block a user