Relax Average value access memory ordering
As there are no requirements with regards to the visibility of writes to the Average, the access can be relaxed.
This commit is contained in:
parent
aa649a2754
commit
6d82de811f
@ -210,7 +210,7 @@ public:
|
||||
*/
|
||||
uint8_t value() const
|
||||
{
|
||||
return mxb::atomic::load(&m_value);
|
||||
return mxb::atomic::load(&m_value, mxb::atomic::RELAXED);
|
||||
}
|
||||
|
||||
protected:
|
||||
@ -220,7 +220,7 @@ protected:
|
||||
protected:
|
||||
void set_value(uint32_t value)
|
||||
{
|
||||
mxb::atomic::store(&m_value, value);
|
||||
mxb::atomic::store(&m_value, value, mxb::atomic::RELAXED);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user