diff options
author | eeight <[email protected]> | 2022-05-17 10:20:05 +0300 |
---|---|---|
committer | eeight <[email protected]> | 2022-05-17 10:20:05 +0300 |
commit | f3ec69ca4abe595abc22fe786710538cfc9b016a (patch) | |
tree | 02f8e499b2bcfbe70a927dc23801ce2264110688 /util/system/atexit.cpp | |
parent | 7f57a1b674d2b1cd7b35ed078e00e3b656e7f25f (diff) |
IGNIETFERRO-1105 Use std::atomic in spinlock
ref:dca14f354fc9b9698f83663ceb0e62e797fe98c5
Diffstat (limited to 'util/system/atexit.cpp')
-rw-r--r-- | util/system/atexit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/system/atexit.cpp b/util/system/atexit.cpp index 74fb10b6b1d..aeb29466b3f 100644 --- a/util/system/atexit.cpp +++ b/util/system/atexit.cpp @@ -76,7 +76,7 @@ namespace { TPriorityQueue<TFunc*, TVector<TFunc*>, TCmp> Items_; }; - static TAtomic atExitLock = 0; + static TAdaptiveLock atExitLock; static TAtExit* volatile atExitPtr = nullptr; alignas(TAtExit) static char atExitMem[sizeof(TAtExit)]; |