 
 import Darwin.Mach
 import Dispatch.time
+import Foundation.NSThread
 
 struct SemaphorePool
 {

    assert(kr == KERN_SUCCESS, __FUNCTION__)
  }

  var state: ChannelSemaphoreState { return currentState }

  func setState(newState: ChannelSemaphoreState) -> Bool

    {
      return true
    }

    if semp == 0 { initSemaphorePort() }

    var kr: kern_return_t
    switch timeout
