Skip to content

Commit

Permalink
fix another typo
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Dec 9, 2024
1 parent faebd54 commit 9f50a05
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 @@ -137,7 +137,7 @@ class borrowable_ptr {
}

void reset() {
m_pSharedPtr.store(m_pNullSharedPtr, std::momory_order_aquire);
m_pSharedPtr.store(m_pNullSharedPtr, std::memory_order_aquire);

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

View workflow job for this annotation

GitHub Actions / Ubuntu 24.04

no member named 'memory_order_aquire' in namespace 'std'; did you mean '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 All @@ -151,7 +151,7 @@ class borrowable_ptr {

private:
QMutex m_mutex;
std::atomic<std::shared_ptr<Tp>>* m_pSharedPtr;
std::atomic<std::shared_ptr<Tp>*> m_pSharedPtr;
std::shared_ptr<Tp> m_sharedPtr; ///< Non-owning shared pointer to the managed object.
static std::shared_ptr<Tp> m_pNullSharedPtr; ///< Default constructed shared pointer with nullptr.
};

0 comments on commit 9f50a05

Please sign in to comment.