Last active
August 29, 2015 14:21
-
-
Save madson/03694a049623c45f6bc5 to your computer and use it in GitHub Desktop.
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
- (void)waitSignal | |
{ | |
while (dispatch_semaphore_wait(_internalSemaphore, DISPATCH_TIME_NOW)) | |
{ | |
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode | |
beforeDate:[NSDate dateWithTimeIntervalSinceNow:10]]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment