|
|
@@ -181,6 +181,12 @@ static BGDB* BGdb = nil;
|
|
|
*/
|
|
|
-(void)addToThreadPool:(void (^_Nonnull)())block{
|
|
|
NSAssert(block, @"block is nil!");
|
|
|
+ if(!self.mulThreadPoolQueue || !self.mulThreadPool || !block){
|
|
|
+ HLog(@"\n\n\n\n\n\n\n addToThreadPool error");
|
|
|
+ [cachesFileManager writeLogsWithMsg:@"addToThreadPool error"];
|
|
|
+ //return;
|
|
|
+ }
|
|
|
+
|
|
|
dispatch_async(self.mulThreadPoolQueue, ^{
|
|
|
NSString* key = [NSString stringWithFormat:@"b_%@_%@",@([[NSDate new] timeIntervalSince1970]),@(random())];
|
|
|
NSDictionary* dict = @{key:block};
|