sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
871 stars 297 forks source link

[Constraint.Lagrangian.Solver] Make problemId counter id atomic #4581

Closed fredroy closed 1 month ago

fredroy commented 2 months ago

Make problemId counter id atomic for thread-safety.

An other (better) solution could be to use local thread storage maybe ?


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

fredroy commented 2 months ago

[ci-build][with-all-tests]