Skip to content

Commit

Permalink
timers: refactor timers
Browse files Browse the repository at this point in the history
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: #4007
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Julien Gilli <jgilli@nodejs.org>
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
  • Loading branch information
Fishrock123 authored and rvagg committed Mar 16, 2016
1 parent 0662fcf commit 769254b
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 218 deletions.
Loading

0 comments on commit 769254b

Please sign in to comment.