123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #import <Realm/RLMConstants.h>
- @class RLMRealm;
- RLM_HEADER_AUDIT_BEGIN(nullability, sendability)
- @protocol RLMThreadConfined <NSObject>
- @property (nonatomic, readonly, nullable) RLMRealm *realm;
- @property (nonatomic, readonly, getter = isInvalidated) BOOL invalidated;
- @end
- RLM_SWIFT_SENDABLE RLM_FINAL
- @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
- RLM_HEADER_AUDIT_END(nullability, sendability)
|