ConditionLock

A Lock with a built-in state variable.

lock.swift:131
final class ConditionLock<T> where T : Equatable

This class provides a convenience addition to Lock: it provides the ability to wait until the state variable is set to a specific value to acquire the lock.