Skip to content

Commit e13ea48

Browse files
author
Chris Amanse
committed
Private method should be for non-Windows only
1 parent b896013 commit e13ea48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/private/SwiftPrivateThreadExtras/ThreadBarriers.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public func _stdlib_thread_barrier_init(
8282
return 0
8383
}
8484

85+
#if !os(Windows)
8586
private func _stdlib_thread_barrier_mutex_and_cond_init(_ barrier: UnsafeMutablePointer<_stdlib_thread_barrier_t>) -> CInt {
8687
guard pthread_mutex_init(barrier.pointee.mutex!, nil) == 0 else {
8788
return -1
@@ -92,6 +93,7 @@ private func _stdlib_thread_barrier_mutex_and_cond_init(_ barrier: UnsafeMutable
9293
}
9394
return 0
9495
}
96+
#endif
9597

9698
public func _stdlib_thread_barrier_destroy(
9799
_ barrier: UnsafeMutablePointer<_stdlib_thread_barrier_t>

0 commit comments

Comments
 (0)