Skip to content

Instantly share code, notes, and snippets.

@mr5z
Created April 14, 2016 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mr5z/7f6ca7f5ef6947bad1b5ae62bf71b009 to your computer and use it in GitHub Desktop.
Save mr5z/7f6ca7f5ef6947bad1b5ae62bf71b009 to your computer and use it in GitHub Desktop.
Objective-C sucks!
@property (atomic, setter=setRunning:, getter=mIsRunning) BOOL mIsRunning;
@property (strong, nonatomic) FifoQueue *queue;
@end
@implementation BcxCommandQueueService
@synthesize mIsRunning;
#pragma mark - GETTERS
- (BOOL)mIsRunning {
@synchronized(self) {
return _mIsRunning;
}
}
- (void)setRunning:(BOOL)isRunning {
self.mIsRunning = isRunning;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment