From 57901a7fde2f11733a42829238b95a0f04e91a1e Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 17 Dec 2014 13:49:44 +0100 Subject: [PATCH] Remove explicit std:: qualification, we use that namespace. --- libheaptrack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libheaptrack.cpp b/libheaptrack.cpp index 70a3481..eb707a8 100644 --- a/libheaptrack.cpp +++ b/libheaptrack.cpp @@ -183,7 +183,7 @@ public: ~HeapTrack() { debugLog("%s", "releasing lock"); - s_locked.store(false, std::memory_order_release); + s_locked.store(false, memory_order_release); } void initialize(const char* fileName, @@ -416,7 +416,7 @@ private: HeapTrack(AdditionalLockCheck lockCheck) { debugLog("%s", "acquiring lock"); - while (s_locked.exchange(true, std::memory_order_acquire) && lockCheck()) { + while (s_locked.exchange(true, memory_order_acquire) && lockCheck()) { this_thread::sleep_for(chrono::microseconds(1)); } debugLog("%s", "lock acquired"); -- 2.7.4