Make MP42Image thread-safe.
This commit is contained in:
1 parent
2e559043eb
commit
9fdc8e8cd0
2 files changed
+38
-19
No files matched your search
+5
-5
@@ -18,7 +18,7 @@ typedef enum MP42TagArtworkType_e {
|
||||
MP42_ART_PNG = 4
|
||||
} MP42TagArtworkType;
|
||||
|
||||
@interface MP42Image : NSObject <NSCoding> {
|
||||
@interface MP42Image : NSObject <NSCoding, NSCopying> {
|
||||
NSImage *_image;
|
||||
|
||||
NSURL *_url;
|
||||
@@ -32,9 +32,9 @@ typedef enum MP42TagArtworkType_e {
|
||||
- (instancetype)initWithData:(NSData *)data type:(NSInteger)type;
|
||||
- (instancetype)initWithBytes:(const void*)bytes length:(NSUInteger)length type:(NSInteger)type;
|
||||
|
||||
@property(readonly) NSImage *image;
|
||||
@property(readonly) NSURL *url;
|
||||
@property(readonly) NSData *data;
|
||||
@property(readonly) NSInteger type;
|
||||
@property(atomic, readonly) NSImage *image;
|
||||
@property(atomic, readonly) NSURL *url;
|
||||
@property(atomic, readonly) NSData *data;
|
||||
@property(atomic, readonly) NSInteger type;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user