Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2020-07-03 17:42:45 +0300
committerJames M Snell <jasnell@gmail.com>2020-07-06 00:56:59 +0300
commitd4f69002b44c55d4db93c01d5468f79e48f46417 (patch)
tree83adddf219b2078fa02ae4c12ee0d2f87e849be2 /node.gyp
parente7dadd376ec535e56faf3be75fe23549bf13abc9 (diff)
src: add TimerWrap utility
Consolidate uv_timer_t boilerplate code into a shared utility. There are several places throughout the code where we use uv_timer_t internally (inspector, perf, quic), with some code duplication. This eliminates the duplicated code, ensures that cleanup occurs correctly, and simplifies use of the timers. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/34186 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 47ce95de755..23f9e2ec7ff 100644
--- a/node.gyp
+++ b/node.gyp
@@ -638,6 +638,7 @@
'src/string_decoder.cc',
'src/tcp_wrap.cc',
'src/timers.cc',
+ 'src/timer_wrap.cc',
'src/tracing/agent.cc',
'src/tracing/node_trace_buffer.cc',
'src/tracing/node_trace_writer.cc',
@@ -741,6 +742,7 @@
'src/tracing/trace_event.h',
'src/tracing/trace_event_common.h',
'src/tracing/traced_value.h',
+ 'src/timer_wrap.h',
'src/tty_wrap.h',
'src/udp_wrap.h',
'src/util.h',