We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04b658 commit 6f4d9ccCopy full SHA for 6f4d9cc
include/swift/Threading/Impl/Win32.h
@@ -64,8 +64,8 @@ inline void mutex_unsafe_unlock(mutex_handle &handle) {
64
using lazy_mutex_handle = SRWLOCK;
65
66
// We don't need to be lazy here because Win32 has SRWLOCK_INIT.
67
-inline void lazy_mutex_init(lazy_mutex_handle &handle) {
68
- handle = SRWLOCK_INIT;
+inline constexpr lazy_mutex_handle lazy_mutex_initializer() {
+ return SRWLOCK_INIT;
69
}
70
inline void lazy_mutex_destroy(lazy_mutex_handle &handle) { }
71
0 commit comments