Commit 60f8c1ac authored by Jeremiah Senkpiel's avatar Jeremiah Senkpiel
Browse files

timers: refactor timers

Consolidates the implementation of regular and internal (_unrefActive)
timers.

Also includes a couple optimizations:
- Isolates the try/catch from listOnTimeout() in a new tryOnTimeout().
- Uses a TimersList constructor as the base for linkedlists.

Additionally includes other cleanup and clarification, such as a rename
of "Timer" to "TimerWrap".

PR-URL: https://github.com/nodejs/node/pull/4007


Reviewed-By: default avatarRod Vagg <rod@vagg.org>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarJulien Gilli <jgilli@nodejs.org>
Reviewed-By: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
parent 3e3d9414
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment