load mode with relaxed ordering

This commit is contained in:
Valentin Balaschenko
2025-11-14 13:07:04 +00:00
parent 2b2b361c87
commit efe7177d1b

View File

@@ -2548,7 +2548,7 @@ NetworkOPsImp::setMode(OperatingMode om)
if (mMode == om)
return;
auto const oldMode = mMode;
auto const oldMode = mMode.load(std::memory_order_relaxed);
mMode = om;
accounting_.mode(om);