Skip to content

Commit 90fc96b

Browse files
committed
Initialize timeout condition variable and mutex for NSRecursiveLock on Windows
1 parent 8043670 commit 90fc96b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Foundation/NSLock.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ open class NSRecursiveLock: NSObject, NSLocking {
234234
super.init()
235235
#if os(Windows)
236236
InitializeCriticalSection(mutex)
237+
InitializeConditionVariable(timeoutCond)
238+
InitializeSRWLock(timeoutMutex)
237239
#else
238240
#if CYGWIN
239241
var attrib : pthread_mutexattr_t? = nil

0 commit comments

Comments
 (0)