Created
October 30, 2014 22:07
-
-
Save KrauseFx/05abd5aa4195992c8fe9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[_writeQueueLock lock]; | |
[_queue inDatabase:^(FMDatabase *db) { | |
FMResultSet *res = [db executeQuery:@"..."]; | |
if ([res next]) { | |
... | |
} | |
[res close]; | |
}]; | |
[_writeQueueLock unlock]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment