mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: remove pthread_barrier attributes
These were not in use, and removing this from the signature makes it possible to re-use the exact signature on Windows more easily.
This commit is contained in:
@@ -126,7 +126,7 @@ public class _stdlib_Barrier {
|
||||
public init(threadCount: Int) {
|
||||
self._pthreadBarrier = _stdlib_pthread_barrier_t()
|
||||
let ret = _stdlib_pthread_barrier_init(
|
||||
_pthreadBarrierPtr, nil, CUnsignedInt(threadCount))
|
||||
_pthreadBarrierPtr, CUnsignedInt(threadCount))
|
||||
if ret != 0 {
|
||||
fatalError("_stdlib_pthread_barrier_init() failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user