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:
Saleem Abdulrasool
2018-11-25 10:52:06 -08:00
parent 0693bec1f1
commit 82360c6b27
3 changed files with 4 additions and 19 deletions

View File

@@ -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")
}