From ff547feb46f624bdde05613baa67127b99b8bd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 9 Dec 2024 13:01:25 +0100 Subject: [PATCH] fix typo --- src/util/borrowable_ptr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/borrowable_ptr.h b/src/util/borrowable_ptr.h index 54dd463831f..e9ee7c8039b 100644 --- a/src/util/borrowable_ptr.h +++ b/src/util/borrowable_ptr.h @@ -128,7 +128,7 @@ class borrowable_ptr { // @brief Borrow a strong reference to the managed object. // @return A `borrowed_ptr` instance pointing to the managed object. borrowed_ptr borrow() { - return borrowed_ptr(*m_pSharedPtr.load(m_pSharedPtr, std::memory_order_aquire)); + return borrowed_ptr(*m_pSharedPtr.load(m_pSharedPtr, std::memory_order_acquire)); } borrowable_ptr& operator=(const borrowable_ptr& other) { @@ -137,7 +137,7 @@ class borrowable_ptr { } void reset() { - m_pSharedPtr.store(m_pNullSharedPtr, std::memory_order_aquire); + m_pSharedPtr.store(m_pNullSharedPtr, std::memory_order_acquire); m_sharedPtr.reset(); // Wait until all borrowed references are released. m_mutex.lock();