diff --git a/Sofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/ConstraintSolverImpl.cpp b/Sofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/ConstraintSolverImpl.cpp index 5278af3faa9..2e9105b45b9 100644 --- a/Sofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/ConstraintSolverImpl.cpp +++ b/Sofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/ConstraintSolverImpl.cpp @@ -52,7 +52,7 @@ void ConstraintProblem::clear(int nbConstraints) f.resize(nbConstraints); static std::atomic counter = 0; - problemId = counter.fetch_add(1, std::memory_order::memory_order_relaxed); + problemId = counter.fetch_add(1, std::memory_order_relaxed); } unsigned int ConstraintProblem::getProblemId() diff --git a/Sofa/framework/Simulation/Core/src/sofa/simulation/DefaultTaskScheduler.cpp b/Sofa/framework/Simulation/Core/src/sofa/simulation/DefaultTaskScheduler.cpp index 3672db0ce3f..5cb3450212f 100644 --- a/Sofa/framework/Simulation/Core/src/sofa/simulation/DefaultTaskScheduler.cpp +++ b/Sofa/framework/Simulation/Core/src/sofa/simulation/DefaultTaskScheduler.cpp @@ -224,12 +224,12 @@ void DefaultTaskScheduler::WaitForWorkersToBeReady() void DefaultTaskScheduler::setMainTaskStatus(const Task::Status* mainTaskStatus) { - m_mainTaskStatus.store(mainTaskStatus, std::memory_order::memory_order_relaxed); + m_mainTaskStatus.store(mainTaskStatus, std::memory_order_relaxed); } bool DefaultTaskScheduler::testMainTaskStatus(const Task::Status* status) { - return m_mainTaskStatus.load(std::memory_order::memory_order_relaxed) == status; + return m_mainTaskStatus.load(std::memory_order_relaxed) == status; } } // namespace sofa::simulation