Created
December 26, 2019 21:50
-
-
Save liuliu/65b1957c80ee04b6f438fd09a1dbc749 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
dispatch_block_t | |
_dispatch_block_create(dispatch_block_flags_t flags, voucher_t voucher, | |
pthread_priority_t pri, dispatch_block_t block) | |
{ | |
struct dispatch_block_private_data_s dbpds(flags, voucher, pri, block); | |
return reinterpret_cast<dispatch_block_t>(_dispatch_Block_copy(^{ | |
// Capture stack object: invokes copy constructor (17094902) | |
(void)dbpds; | |
_dispatch_block_invoke_direct(&dbpds); | |
})); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment