[container] another attempt on thread-safety
The auto& backend_ref = backend(); in many methods has to be protected by the mutex, otherwise the reference may not be valid when it is used. To avoid a double lock, the backend() and ensure_uniqueness() methods now do not lock anymore and thus need to be protected by a mutex if necessary
Showing
- dune/xt/la/container/common.hh 24 additions, 30 deletionsdune/xt/la/container/common.hh
- dune/xt/la/container/eigen/base.hh 1 addition, 0 deletionsdune/xt/la/container/eigen/base.hh
- dune/xt/la/container/eigen/dense.hh 10 additions, 15 deletionsdune/xt/la/container/eigen/dense.hh
- dune/xt/la/container/eigen/sparse.hh 9 additions, 11 deletionsdune/xt/la/container/eigen/sparse.hh
- dune/xt/la/container/istl.hh 16 additions, 18 deletionsdune/xt/la/container/istl.hh
Loading
Please register or sign in to comment