Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/NIOConcurrencyHelpers/NIOLock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public struct NIOLock {

internal func unlock() {
#if os(Windows)
ReleaseSRWLockExclusive(self._storage.mutex)
ReleaseSRWLockExclusive(self.mutex)
#else
let err = pthread_mutex_unlock(self.mutex)
precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOConcurrencyHelpers/lock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public final class ConditionLock<T: Equatable> {
}

let dwWaitStart = timeGetTime()
if !SleepConditionVariableSRW(self.cond, self.mutex.mutex,
if !SleepConditionVariableSRW(self.cond, self.mutex._storage.mutex,
dwMilliseconds, 0) {
let dwError = GetLastError()
if (dwError == ERROR_TIMEOUT) {
Expand Down