123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #import <Foundation/Foundation.h>
- @class RLMRealm;
- NS_ASSUME_NONNULL_BEGIN
- @protocol RLMThreadConfined <NSObject>
- @property (nonatomic, readonly, nullable) RLMRealm *realm;
- @property (nonatomic, readonly, getter = isInvalidated) BOOL invalidated;
- @end
- @interface RLMThreadSafeReference<__covariant Confined : id<RLMThreadConfined>> : NSObject
- + (instancetype)referenceWithThreadConfined:(Confined)threadConfined;
- @property (nonatomic, readonly, getter = isInvalidated) BOOL invalidated;
- #pragma mark - Unavailable Methods
- - (instancetype)init __attribute__((unavailable("RLMThreadSafeReference cannot be created directly")));
- + (instancetype)new __attribute__((unavailable("RLMThreadSafeReference cannot be created directly")));
- @end
- NS_ASSUME_NONNULL_END
|