Skip to content

Commit 6f4d9cc

Browse files
committed
[Threading][Windows] Fix another Windows niggle.
Looks like I forgot to update the Win32.h implementation. rdar://90776105
1 parent f04b658 commit 6f4d9cc

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

include/swift/Threading/Impl/Win32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ inline void mutex_unsafe_unlock(mutex_handle &handle) {
6464
using lazy_mutex_handle = SRWLOCK;
6565

6666
// 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;
67+
inline constexpr lazy_mutex_handle lazy_mutex_initializer() {
68+
return SRWLOCK_INIT;
6969
}
7070
inline void lazy_mutex_destroy(lazy_mutex_handle &handle) { }
7171

0 commit comments

Comments
 (0)