Grand Central Dispatch (GCD) Reference (原创)Grand Central

本文深入探讨了队列管理、任务调度等关键概念及其实现细节,包括创建与管理队列、任务调度策略、使用调度组、管理调度源、API接口应用等方面,旨在为开发者提供全面的队列与调度任务解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

概论 6

            功能的任务 6

            创建和管理队列 6

            队列中的任务调度 7

            使用调度组    8

            管理调度对象 9

            实用信号灯 10

            使用障碍 10

            管理调度源 11

           使用调度 输入/输出方便的API 12

            使用调度 输入/输出通道的API 12

            管理调度数据对象 13

            时间管理       13

            管理特定队列的上下文数据13

功能 14

dispatch_after 14


dispatch_after_f 15

dispatch_apply 15

dispatch_apply_f 16

dispatch_async 17

dispatch_async_f 18

dispatch_barrier_async 19

dispatch_barrier_async_f 20

dispatch_barrier_sync 20

      dispatch_barrier_sync_f 21

dispatch_data_apply 22

dispatch_data_copy_region 23

dispatch_data_create 24

dispatch_data_create_concat 25

      dispatch_data_create_map 26

dispatch_data_create_subrange 27

      dispatch_data_get_size 27

dispatch_debug 28

dispatch_get_context 29

dispatch_get_current_queue 29

      dispatch_get_global_queue 30

      dispatch_get_main_queue 31

dispatch_get_specific 31

dispatch_group_async 32

      dispatch_group_async_f 33

dispatch_group_create 33

dispatch_group_enter 34

dispatch_group_leave 35

dispatch_group_notify 35

dispatch_group_notify_f 36

      dispatch_group_wait 37

dispatch_io_close 38

      dispatch_io_create 39

dispatch_io_create_with_path 40

  dispatch_io_read 42

dispatch_io_set_high_water 43

dispatch_io_set_interval 44

dispatch_io_set_low_water 44

dispatch_io_write 45

      dispatch_main 47

dispatch_once 47

dispatch_queue_create 48

dispatch_queue_get_label 49

      dispatch_queue_get_specific 49

dispatch_queue_set_specific 50

dispatch_read 51

dispatch_release 52

dispatch_resume 53

dispatch_retain 54

      dispatch_semaphore_create 54

      dispatch_semaphore_signal 55

dispatch_semaphore_wait 55

dispatch_set_context 56

dispatch_set_finalizer_f 57

dispatch_set_target_queue 57

dispatch_source_cancel 58

      dispatch_source_create 59

dispatch_source_get_data 60

dispatch_source_get_handle 61

     dispatch_source_get_mask 62

dispatch_source_merge_data 63

dispatch_source_set_cancel_handler 63

dispatch_source_set_cancel_handler_f 64

dispatch_source_set_event_handler 65

dispatch_source_set_event_handler_f66 

dispatch_source_set_registration_handler66 

dispatch_source_set_registration_handler_f 67

dispatch_source_set_timer 68

dispatch_source_testcancel 69

dispatch_suspend 69

dispatch_sync 70

dispatch_sync_f 71

dispatch_time 71

dispatch_walltime 72

dispatch_write 73

 数据类型 74

  dispatch_block_t 74

  dispatch_group_t 75

  dispatch_object_t 76

  dispatch_once_t 77

  dispatch_queue_t 77

  dispatch_time_t 78

 dispatch_source_type_t 78

  dispatch_fd_t 78

  dispatch_data_t 79

 dispatch_data_applier_t 79

 dispatch_io_t 79

  dispatch_io_handler_t 80

  dispatch_io_type_t 80

  dispatch_io_close_flags_t 80

  dispatch_io_interval_flags_t 81

常量 81

  dispatch_queue_priority_t 81

  dispatch_source_mach_send_flags_t 82

  dispatch_source_proc_flags_t 82

  dispatch_source_vnode_flags_t 83

 Data Object Constants 84


  Data Destructor Constants 84

  Dispatch Queue Types 85


 Dispatch Source Type Constants 86

  Dispatch Time Constants 87

  Dispatch I/O Channel Types 88

 Channel Closing Options 88

  Channel Configuration Options 89

文档修订历史 90

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值