mirror of
https://github.com/zhigang1992/PINRemoteImage.git
synced 2026-06-13 01:18:31 +08:00
26 lines
527 B
Objective-C
26 lines
527 B
Objective-C
//
|
|
// PINRemoteLock.h
|
|
// Pods
|
|
//
|
|
// Created by Garrett Moon on 3/17/16.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef NS_ENUM(NSUInteger, PINRemoteLockType) {
|
|
PINRemoteLockTypeNonRecursive = 0,
|
|
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
|