Commit d2c30398 authored by Felix Paul Kühne's avatar Felix Paul Kühne

crash preventer: add API to check if there crash-prone action going on

parent b014a789
......@@ -37,4 +37,6 @@
- (void)willParseFile:(MLFile *)file;
- (void)didParseFile:(MLFile *)file;
- (BOOL)fileParsingInProgress;
@end
......@@ -64,6 +64,11 @@
NSAssert([_parsedFiles count] == 0, @"You should call -cancelAllFileParse before releasing");
}
- (BOOL)fileParsingInProgress
{
return _parsedFiles.count > 0;
}
- (void)cancelAllFileParse
{
APLog(@"Cancelling file parsing");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment