wait(forSemaphore:thenSignalSemaphore:timeout:)

Atomically waits for one semaphore and signals another.

Semaphore.swift:80
static func wait(forSemaphore waitSemaphore: Semaphore, thenSignalSemaphore signalSemaphore: Semaphore, timeout: mach_timespec_t? = nil) throws