Files
PINRemoteImage/Pod/Classes/PINRemoteLock.h
Garrett Moon d8c5795fcd Improved docs
2016-03-20 17:47:25 -07:00

29 lines
707 B
Objective-C

//
// PINRemoteLock.h
// Pods
//
// Created by Garrett Moon on 3/17/16.
//
//
#import <Foundation/Foundation.h>
/** The type of lock, either recursive or non-recursive */
typedef NS_ENUM(NSUInteger, PINRemoteLockType) {
/** A non-recursive version of the lock. The default. */
PINRemoteLockTypeNonRecursive = 0,
/** A recursive version of the lock. More expensive. */
PINRemoteLockTypeRecursive,
};
@interface PINRemoteLock : NSObject
- (instancetype)initWithName:(NSString *)lockName lockType:(PINRemoteLockType)lockType NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithName:(NSString *)lockName;
- (void)lockWithBlock:(dispatch_block_t)block;
- (void)lock;
- (void)unlock;
@end