From 8588b8b4a68f3e140c1a583697b8423cd55cfa82 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 3 Jan 2020 00:25:01 +0100 Subject: [PATCH] Don't lock memory on fast path. --- client/TracyLfq.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyLfq.hpp b/client/TracyLfq.hpp index d991d938..2b52fc29 100644 --- a/client/TracyLfq.hpp +++ b/client/TracyLfq.hpp @@ -143,7 +143,7 @@ public: static tracy_force_inline void CommitNext( char* nextPtr ) { - lfq.tail->store( nextPtr ); + lfq.tail->store( nextPtr, std::memory_order_release ); }