Classes
The following classes are available globally.
-
Thread-safe value wrapper for
NSMutableSet
, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
Swift
@objc public class DispatchedMutableSet: NSObject, DispatchedValueWrapper
-
Thread-safe value wrapper for
NSNumber
, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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 ofDispatchedValue
.Seealso
DispatchedValueWrapperDeclaration
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 itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
Swift
@objc public class DispatchedObject: NSObject, DispatchedValueWrapper
-
Thread-safe value wrapper for
NSMutableDictionary
, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
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.
See more
Only one writer can hold the lock, preventing readers to acquire it.Declaration
Swift
public class RWLock
-
Represents a thread-safe value wrapper, using locking to achieve synchronization.
Note that this class is not KVO-compliant.
If you need this, please use subclasses ofDispatchedValue
.Seealso
DispatchedValue
Seealso
ThreadSafeValueWrapper
Declaration
Swift
public class LockingValue< T, L >: ThreadSafeValueWrapper where L: NSLocking
-
Thread-safe value wrapper for
String
, using dispatch queues to achieve synchronization. This class is KVO-compliant. You may observe itsvalue
property to be notified of changes. This is applicable to Cocoa bindings.Seealso
DispatchedValueWrapperDeclaration
Swift
@objc public class DispatchedString: NSObject, DispatchedValueWrapper
-
Represents a semaphore object.
See more
Note that named semaphores are shared accross different processes.Declaration
Swift
public class Semaphore
-
Represents a thread-safe value wrapper, using an unfair lock to achieve synchronization.
Note that this class is not KVO-compliant.
If you need this, please use subclasses ofDispatchedValue
.Seealso
DispatchedValue
Seealso
LockingValue
Seealso
UnfairLock
Declaration
Swift
public class Atomic< T >: LockingValue< T, UnfairLock >