Classes

The following classes are available globally.

  • Swift wrapper class for os_unfair_lock_t.
    A low-level lock that allows waiters to block efficiently on contention.

    Seealso

    Locakble
    See more

    Declaration

    Swift

    public class UnfairLock: Lockable
  • Thread-safe value wrapper for NSMutableSet, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedMutableSet: NSObject, DispatchedValueWrapper
  • Swift wrapper class for pthread_mutex_t.
    Note that this is a recursive version.

    Seealso

    Locakble
    See more

    Declaration

    Swift

    public class RecursiveMutex: Lockable
  • Thread-safe value wrapper for NSNumber, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedNumber: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper for NSTreeController, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedTreeController: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper for NSMutableArray, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedMutableArray: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper for NSArrayController, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedArrayController: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper for NSDictionaryController, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedDictionaryController: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper for Bool, using dispatch queues to achieve synchronization.
    This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedBool: NSObject, DispatchedValueWrapper
  • Thread-safe value wrapper, using dispatch queues to achieve synchronization.
    Note that this class is not KVO-compliant.
    If you need this, please use subclasses of DispatchedValue.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    public class DispatchedValue< T >: DispatchedValueWrapper
  • Thread-safe value wrapper for NSObject, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedObject: NSObject, DispatchedValueWrapper
  • Swift wrapper class for pthread_mutex_t.
    Note that this is a non-recursive version.

    Seealso

    Locakble
    See more

    Declaration

    Swift

    public class Mutex: Lockable
  • Thread-safe value wrapper for NSMutableDictionary, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedMutableDictionary: NSObject, DispatchedValueWrapper
  • Represents a reader-writer lock.
    Note that this implementation is recursive.

    Using a reader-writer lock, multiple treads can lock for reading, if no writer is currently holding the lock.
    Only one writer can hold the lock, preventing readers to acquire it.

    See more

    Declaration

    Swift

    public class RWLock
  • Thread-safe value wrapper for String, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe its value property to be notified of changes. This is applicable to Cocoa bindings.

    Seealso

    DispatchedValueWrapper
    See more

    Declaration

    Swift

    @objc public class DispatchedString: NSObject, DispatchedValueWrapper
  • Represents a semaphore object.
    Note that named semaphores are shared accross different processes.

    See more

    Declaration

    Swift

    public class Semaphore