-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: introduce TimerWrap/TimerWrapHandle utility #34186
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-github-bot
added
c++
Issues and PRs that require attention from people who are familiar with C++.
lib / src
Issues and PRs related to general changes in the lib or src directory.
labels
Jul 3, 2020
addaleax
reviewed
Jul 3, 2020
addaleax
approved these changes
Jul 3, 2020
jasnell
added
the
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
label
Jul 3, 2020
CI: https://ci.nodejs.org/job/node-test-pull-request/32204/ (:yellow_heart:) |
32 tasks
mcollina
approved these changes
Jul 4, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
31 tasks
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 <[email protected]>
Signed-off-by: James M Snell <[email protected]>
Signed-off-by: James M Snell <[email protected]>
jasnell
added a commit
that referenced
this pull request
Jul 5, 2020
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 <[email protected]> PR-URL: #34186 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
jasnell
added a commit
that referenced
this pull request
Jul 5, 2020
Signed-off-by: James M Snell <[email protected]> PR-URL: #34186 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
jasnell
added a commit
that referenced
this pull request
Jul 5, 2020
Signed-off-by: James M Snell <[email protected]> PR-URL: #34186 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
This was referenced Jul 6, 2020
addaleax
added a commit
to addaleax/node
that referenced
this pull request
Jul 7, 2020
0f97d60 accidentally removed this. Refs: nodejs#34186
18 tasks
jasnell
pushed a commit
to jasnell/node
that referenced
this pull request
Jul 8, 2020
0f97d60 accidentally removed this. Refs: nodejs#34186
20 tasks
jasnell
pushed a commit
that referenced
this pull request
Jul 9, 2020
0f97d60 accidentally removed this. Refs: #34186 PR-URL: #34247 Reviewed-By: James M Snell <[email protected]>
17 tasks
This was referenced Jul 11, 2020
Marked as "backport-requested" because I do not believe quic is on 14.x yet. Should we change the label to "dont-land"? |
targos
added
backported-to-v14.x
and removed
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
backport-requested-v14.x
labels
Apr 30, 2021
targos
pushed a commit
that referenced
this pull request
May 1, 2021
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 <[email protected]> PR-URL: #34186 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
targos
pushed a commit
that referenced
this pull request
May 1, 2021
Signed-off-by: James M Snell <[email protected]> PR-URL: #34186 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Merged
codebytere
added a commit
to electron/electron
that referenced
this pull request
May 14, 2021
This was added in nodejs/node#34186 and nodejs/node#38172. Fix upstreamed at nodejs/node#38686.
codebytere
added a commit
to electron/electron
that referenced
this pull request
May 14, 2021
codebytere
added a commit
to electron/electron
that referenced
this pull request
May 18, 2021
This was added in nodejs/node#34186 and nodejs/node#38172. Fix upstreamed at nodejs/node#38686.
codebytere
added a commit
to electron/electron
that referenced
this pull request
May 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several places throughout src/* make use of uv_timer_t internally (inspector, perf, quic, etc). These duplicate code. This introduces a new utility class to consolidate code and make it easier overall to work with internal uv_timer_t instances.
First commit adds the utility, subsequent commits update systems that use it.
The quic specific commit cannot be backported to 14.x, the rest of the commits are backportable.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes