随笔分类 - objc
摘要:GCD is a C APIThe basic idea is that you have queues of operationsThe operations are specified using blocks.Most queues run their operations serially (a true “queue”).We’re only going to talk about serial queues today.The system runs operations from queues in separate threadsThough there is no guara
阅读全文
摘要:Creating a “type” for a variable that can hold a blockBlocks are kind of like “objects” with an unusual syntax for declaring variables that hold them.Usually if we are going to store a block in a variable, we typedef a type for that variable, e.g.,typedef double (^unary_operation_t)(double op);This
阅读全文
浙公网安备 33010602011771号