mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-12-15 07:20:17 +00:00
Message counter: use relaxed/acquire memory ordering
This commit is contained in:
committed by
Alexey Rybalchenko
parent
c0153a6b55
commit
f1d6b18668
@@ -391,8 +391,8 @@ class Manager
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IncrementMsgCounter() { ++fMsgCounter; }
|
void IncrementMsgCounter() { fMsgCounter.fetch_add(1, std::memory_order_relaxed); }
|
||||||
void DecrementMsgCounter() { --fMsgCounter; }
|
void DecrementMsgCounter() { fMsgCounter.fetch_sub(1, std::memory_order_relaxed); }
|
||||||
|
|
||||||
void SendHeartbeats()
|
void SendHeartbeats()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user