Skip to content

Commit 0d1559c

Browse files
authored
Merge pull request #70963 from al45tair/eng/PR-121122202
[Threading] Add the correct scope for lazy_mutex_handle.
2 parents f6b7301 + f8f2751 commit 0d1559c

File tree

1 file changed

+1
-1
lines changed
  • include/swift/Threading/Impl

1 file changed

+1
-1
lines changed

include/swift/Threading/Impl/C11.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct lazy_mutex_handle {
9595
std::int32_t once; // -1 = initialized, 0 = uninitialized, 1 = initializing
9696
};
9797

98-
#define SWIFT_LAZY_MUTEX_INITIALIZER ((lazy_mutex_handle){})
98+
#define SWIFT_LAZY_MUTEX_INITIALIZER ((threading_impl::lazy_mutex_handle){})
9999

100100
inline void lazy_mutex_init(lazy_mutex_handle &handle) {
101101
// Sadly, we can't use call_once() for this as it doesn't have a context

0 commit comments

Comments
 (0)