Created
December 26, 2019 21:48
-
-
Save liuliu/6ad63cfc1c6aa473549b4cd3c668c5d4 to your computer and use it in GitHub Desktop.
This file contains 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
static atomic_int executed_count; | |
void my_dispatch_async(dispatch_queue_t queue, dispatch_block_t block) { | |
dispatch_async(queue, ^{ | |
++executed_count; | |
block(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment