diff options
Diffstat (limited to 'common/intrusive_ptr.h')
-rw-r--r-- | common/intrusive_ptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/intrusive_ptr.h b/common/intrusive_ptr.h index 84d18aa0..27075347 100644 --- a/common/intrusive_ptr.h +++ b/common/intrusive_ptr.h @@ -18,7 +18,7 @@ public: unsigned int dec_ref() noexcept { auto ref = DecrementRef(mRef); - if(ref == 0) [[unlikely]] + if(ref == 0) UNLIKELY delete static_cast<T*>(this); return ref; } @@ -71,7 +71,7 @@ public: } intrusive_ptr& operator=(intrusive_ptr&& rhs) noexcept { - if(&rhs != this) [[likely]] + if(&rhs != this) LIKELY { if(mPtr) mPtr->dec_ref(); mPtr = std::exchange(rhs.mPtr, nullptr); |