-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #441 from Simperium/develop
Simperum Mark 0.7.7
- Loading branch information
Showing
26 changed files
with
808 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// NSConditionLock+Simperium.h | ||
// Simperium | ||
// | ||
// Created by Jorge Leandro Perez on 1/22/15. | ||
// Copyright (c) 2015 Simperium. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
|
||
@interface NSConditionLock (Simperium) | ||
|
||
- (void)sp_increaseCondition; | ||
- (void)sp_decreaseCondition; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// NSConditionLock+Simperium.m | ||
// Simperium | ||
// | ||
// Created by Jorge Leandro Perez on 1/22/15. | ||
// Copyright (c) 2015 Simperium. All rights reserved. | ||
// | ||
|
||
#import "NSConditionLock+Simperium.h" | ||
|
||
|
||
@implementation NSConditionLock (Simperium) | ||
|
||
- (void)sp_increaseCondition { | ||
[self lock]; | ||
NSInteger condition = self.condition + 1; | ||
[self unlockWithCondition:condition]; | ||
} | ||
|
||
- (void)sp_decreaseCondition { | ||
[self lock]; | ||
NSInteger condition = self.condition - 1; | ||
[self unlockWithCondition:condition]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.