 //
-//  chan-bufferedN.swift
+//  schan-bufferedN.swift
 //  concurrency
 //
 //  Created by Guillaume Lessard on 2014-11-19.

    self.init(1)
  }

  // Computed property accessors

  final override var isEmpty: Bool
  {
    return q.count <= 0
  }

  final override var isFull: Bool
  {
    return q.count >= capacity
  }

  /**
    Determine whether the channel has been closed
  */


    if !closed
    {
      tailptr.initialize(newElement)
      tailptr = tailptr.successor()
      tail += 1
      if (tail&mask == 0) { tailptr = buffer }
    }

    dispatch_semaphore_signal(mutex)
