Skip to content

Commit 6bce596

Browse files
committed
Update LockSingleConsumerStack.swift
1 parent 3a115fc commit 6bce596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/Synchronization/Mutex/LockSingleConsumerStack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class LockSingleConsumerStack<Element> {
3232
let new = NodePtr.allocate(capacity: 1)
3333
new.initialize(to: Node(value: value, next: nil))
3434

35-
_last.withLockUnchecked {
35+
_last.withLock {
3636
new.pointee.next = $0
3737
$0 = new
3838
}

0 commit comments

Comments
 (0)