Try to solve the strange dispatch group crash in SDSafeExecute by removing inline

Guessing the queue ARC lifecycle is wrong during some of compiler optimization
This commit is contained in:
DreamPiggy 2023-05-05 15:44:46 +08:00
parent 20df851f2a
commit 4ffd068762
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ static void SDReleaseBlock(void *context) {
CFRelease(context);
}
static void inline SDSafeExecute(dispatch_queue_t _Nonnull queue, dispatch_block_t _Nonnull block, BOOL async) {
static void SDSafeExecute(dispatch_queue_t _Nonnull queue, dispatch_block_t _Nonnull block, BOOL async) {
// Special handle for main queue label only (custom queue can have the same label)
const char *label = dispatch_queue_get_label(queue);
if (label && label == dispatch_queue_get_label(dispatch_get_main_queue())) {