Skip to content

Commit f8f2751

Browse files
committed
[Threading] Add the correct scope for lazy_mutex_handle.
Because we're mentioning the type in a macro and it gets used elsewhere, we need to be explicit that the type is inside threading_impl. rdar://121122202
1 parent d0344e5 commit f8f2751

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)