idealvin / gitalk

comments for Alvin's blog
0 stars 0 forks source link

Config | Documents for Coost #104

Open idealvin opened 1 year ago

idealvin commented 1 year ago

https://coostdocs.github.io/en/co/concurrency/coroutine/conf/

Config Coost uses co.flag to define config items for the coroutine module. Please refer to co.flag documents for detailed usage.

co_hook_log DEF_bool(co_hook_log, false, ">>#1 print log for API hooks"); Print API hook related logs, default is false. Coost v3.0.1 renamed hook_log to co_hook_log. #co_sched_log DEF_bool(co_sched_log, false, ">>#1 print logs for coroutine schedulers"); Print debug logs for coroutine scheduling, default is false. Coost v3.0.1 renamed co_debug_log to co_sched_log. #co_sched_num DEF_uint32(co_sched_num, os::cpunum(), ">>#1 number of coroutine schedulers"); The number of coroutine scheduling threads, which defaults to the number of system CPU cores.