Skip to content

Commit 17d047b

Browse files
authored
Merge pull request #2269 from lxbndr/fix-nsrecursivelock-mutex-init
2 parents be1cf86 + 90fc96b commit 17d047b

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)