Skip to content

Commit f7fc083

Browse files
committed
iox-#2011 Fix clang-tidy warning
1 parent 6794c8e commit f7fc083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iceoryx_hoofs/concurrent/sync/include/iox/spin_lock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SpinLock : public LockInterface<SpinLock>
6666
const concurrent::Atomic<bool> m_recursive{false};
6767
concurrent::Atomic<pid_t> m_pid{0};
6868
concurrent::Atomic<uint64_t> m_recursive_count{0};
69-
concurrent::Atomic<std::thread::id> m_tid{};
69+
concurrent::Atomic<std::thread::id> m_tid{std::thread::id()};
7070
};
7171

7272
class SpinLockBuilder

0 commit comments

Comments
 (0)