huenchao / libuv-study-v1.x

libuv源码阅读的注释版本
Other
2 stars 0 forks source link

timer.c #2

Open huenchao opened 5 years ago

huenchao commented 5 years ago

https://github.com/xtx1130/blog/issues/29

huenchao commented 5 years ago

关于timer,我打算debug一次 test-default-loop-close.c,来看看整个过程~ok,开始吧~ image

huenchao commented 5 years ago

参考文章:https://my.oschina.net/u/2343729/blog/1827771/print

huenchao commented 5 years ago

和timer相关的,涉及到双向循环列表和最小堆。一方面你每次init、start一个handle,就会和loop_s的handle_queue关联到一起~。另外就是timer_heap的min是和最小堆有关系。