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 3a115fc commit 6bce596Copy full SHA for 6bce596
test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift
@@ -32,7 +32,7 @@ class LockSingleConsumerStack<Element> {
32
let new = NodePtr.allocate(capacity: 1)
33
new.initialize(to: Node(value: value, next: nil))
34
35
- _last.withLockUnchecked {
+ _last.withLock {
36
new.pointee.next = $0
37
$0 = new
38
}
0 commit comments