From f7fc0834d5da67b3382424bb7abb6da5e19f2c8f Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Fri, 10 Jan 2025 16:48:38 +0100 Subject: [PATCH] iox-#2011 Fix clang-tidy warning --- iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp b/iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp index 32c66d4f67..ace7621c2d 100644 --- a/iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp +++ b/iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp @@ -66,7 +66,7 @@ class SpinLock : public LockInterface const concurrent::Atomic m_recursive{false}; concurrent::Atomic m_pid{0}; concurrent::Atomic m_recursive_count{0}; - concurrent::Atomic m_tid{}; + concurrent::Atomic m_tid{std::thread::id()}; }; class SpinLockBuilder