From e051de60345b6eff880aab2b647629832b0d7129 Mon Sep 17 00:00:00 2001 From: "Hintz Martin (CC-AD/ESW1)" Date: Mon, 2 Nov 2020 10:02:20 +0100 Subject: [PATCH] iox-#325: Use robust mutex in locking policy as well Signed-off-by: Hintz Martin (CC-AD/ESW1) --- .../internal/popo/building_blocks/locking_policy.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp b/iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp index 0b84619178..d4a9ac1f16 100644 --- a/iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp +++ b/iceoryx_posh/include/iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp @@ -29,7 +29,7 @@ class ThreadSafePolicy bool tryLock() const noexcept; private: - mutable posix::mutex m_mutex{true}; // recursive lock + mutable posix::mutex m_mutex{posix::mutex::Recursive::ON, posix::mutex::Robust::ON}; // recursive lock }; class SingleThreadedPolicy