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 July 27, 2024 09:30
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.