Replace gmx::Mutex with std::mutex
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 29 Jan 2021 15:24:39 +0000 (16:24 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 1 Feb 2021 09:26:51 +0000 (10:26 +0100)
commitca6b5426a74ad2ccca24956dfb64dfd0033057f7
tree24eb9fb82391a8aec57cb48ee765f5f9f228c8f1
parent068593fef4f150d7cdcec542c6a1f7bc48b4aec2
Replace gmx::Mutex with std::mutex

We use no mutexes during the MD loop, so performance is not a serious
consideration and we should simplify by using std components.
Eliminated components of thread-MPI that are now unused.

In particular, this reduces the cross-dependencies between the
libgromacs and threadMPI libraries.

Minor style improvements around set_over_alloc_dd.

Part of #3892
26 files changed:
cmake/ThreadMPI.cmake
src/external/thread_mpi/include/thread_mpi/mutex.h [deleted file]
src/external/thread_mpi/include/thread_mpi/system_error.h [deleted file]
src/external/thread_mpi/src/system_error.cpp [deleted file]
src/gromacs/commandline/cmdlineprogramcontext.cpp
src/gromacs/commandline/cmdlineprogramcontext.h
src/gromacs/domdec/domdec.cpp
src/gromacs/fft/fft5d.cpp
src/gromacs/fft/fft_fftw3.cpp
src/gromacs/fileio/gmxfio.cpp
src/gromacs/fileio/timecontrol.cpp
src/gromacs/gpu_utils/clfftinitializer.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl.cpp
src/gromacs/pulling/pull.cpp
src/gromacs/selection/nbsearch.cpp
src/gromacs/utility/exceptions.cpp
src/gromacs/utility/fatalerror.cpp
src/gromacs/utility/futil.cpp
src/gromacs/utility/keyvaluetreeserializer.cpp
src/gromacs/utility/mutex.h [deleted file]
src/gromacs/utility/smalloc.cpp
src/gromacs/utility/smalloc.h
src/gromacs/utility/tests/CMakeLists.txt
src/gromacs/utility/tests/mutex.cpp [deleted file]
src/testutils/include/testutils/testoptions.h
src/testutils/testoptions.cpp