Skip to content

Instantly share code, notes, and snippets.

View huenchao's full-sized avatar
🐒
Focusing

huenchao huenchao

🐒
Focusing
  • Alibaba-inc
  • hangzhou
View GitHub Profile
@trevnorris
trevnorris / uv-loop-notes.txt
Last active October 10, 2022 15:45
rough notes on the linux side of the libuv event loop
uv_run
- uv__update_time(): Update time with millisecond precision.
- uv__run_timers(): Loop through "heap" and run timers whose timeout > time.
- uv__run_pending(): Run all callbacks on the pending_queue. Remove each item
from the queue when run.