Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Dec 9, 2024
1 parent 9f50a05 commit ff547fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/borrowable_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Tp> borrow() {
return borrowed_ptr<Tp>(*m_pSharedPtr.load(m_pSharedPtr, std::memory_order_aquire));
return borrowed_ptr<Tp>(*m_pSharedPtr.load(m_pSharedPtr, std::memory_order_acquire));

Check failure on line 131 in src/util/borrowable_ptr.h

View workflow job for this annotation

GitHub Actions / Ubuntu 24.04

no matching member function for call to 'load'
}

borrowable_ptr& operator=(const borrowable_ptr& other) {
Expand All @@ -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);

Check failure on line 140 in src/util/borrowable_ptr.h

View workflow job for this annotation

GitHub Actions / Ubuntu 24.04

no matching member function for call to 'store'
m_sharedPtr.reset();
// Wait until all borrowed references are released.
m_mutex.lock();
Expand Down

0 comments on commit ff547fe

Please sign in to comment.