mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Mark some functions noexcept to reduce size of compiled code
This commit is contained in:
@@ -114,14 +114,14 @@ public:
|
||||
(_dummyPtr->*IntrusiveLink).~Atomic();
|
||||
}
|
||||
|
||||
void Enqueue(T* input)
|
||||
void Enqueue(T* input) noexcept
|
||||
{
|
||||
(input->*IntrusiveLink).store(nullptr, std::memory_order_release);
|
||||
T* prevHead = _head.exchange(input, std::memory_order_acq_rel);
|
||||
(prevHead->*IntrusiveLink).store(input, std::memory_order_release);
|
||||
}
|
||||
|
||||
bool Dequeue(T*& result)
|
||||
bool Dequeue(T*& result) noexcept
|
||||
{
|
||||
T* tail = _tail.load(std::memory_order_relaxed);
|
||||
T* next = (tail->*IntrusiveLink).load(std::memory_order_acquire);
|
||||
|
||||
Reference in New Issue
Block a user