Skip to content

Commit b4f81fc

Browse files
authored
Merge pull request #2410 from elBoberido/iox-2011-fix-nightly-clang-tidy
iox-#2011 Fix clang-tidy warning
2 parents 6794c8e + f7fc083 commit b4f81fc

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)