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:
parent
20df851f2a
commit
4ffd068762
|
@ -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())) {
|
||||
|
|
Loading…
Reference in New Issue