From: Milian Wolff Date: Wed, 17 Dec 2014 12:49:44 +0000 (+0100) Subject: Remove explicit std:: qualification, we use that namespace. X-Git-Tag: submit/tizen/20180620.112952^2~356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57901a7fde2f11733a42829238b95a0f04e91a1e;p=sdk%2Ftools%2Fheaptrack.git Remove explicit std:: qualification, we use that namespace. --- 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");