src: use std::optional for Worker thread id#41453
Merged
aduh95 merged 2 commits intonodejs:masterfrom Jan 14, 2022
Merged
Conversation
addaleax
commented
Jan 9, 2022
| // This mutex protects access to all variables listed below it. | ||
| mutable Mutex mutex_; | ||
|
|
||
| bool thread_joined_ = true; |
Member
Author
There was a problem hiding this comment.
The comment here implied that this was protected by the mutex, but a) that didn’t reflect the actual usage of this field and b) it’s only ever accessed from the parent thread anyway, so no locking is necessary here
tniessen
approved these changes
Jan 9, 2022
Trott
approved these changes
Jan 10, 2022
cjihrig
approved these changes
Jan 10, 2022
Collaborator
Collaborator
22 tasks
Collaborator
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/41453 ✔ Done loading data for nodejs/node/pull/41453 ----------------------------------- PR info ------------------------------------ Title src: use std::optional for Worker thread id (#41453) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch addaleax:41421-response -> nodejs:master Labels c++, author ready, worker Commits 2 - src: use std::optional for Worker thread id - fixup! src: use std::optional for Worker thread id Committers 2 - Anna Henningsen - GitHub PR-URL: https://github.com/nodejs/node/pull/41453 Refs: https://github.com/nodejs/node/pull/41421 Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/41453 Refs: https://github.com/nodejs/node/pull/41421 Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 09 Jan 2022 18:55:39 GMT ✔ Approvals: 4 ✔ - Tobias Nießen (@tniessen) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-852398248 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-847354707 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-848035956 ✔ - Michael Dawson (@mhdawson) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-848089907 ✖ Last GitHub CI failed ℹ Last Full PR CI on 2022-01-14T06:39:23Z: https://ci.nodejs.org/job/node-test-pull-request/41866/ - Querying data for job/node-test-pull-request/41866/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/1697209985 |
Collaborator
Commit Queue failed- Loading data for nodejs/node/pull/41453 ✔ Done loading data for nodejs/node/pull/41453 ----------------------------------- PR info ------------------------------------ Title src: use std::optional for Worker thread id (#41453) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch addaleax:41421-response -> nodejs:master Labels c++, author ready, worker, dont-land-on-v12.x, dont-land-on-v14.x, dont-land-on-v16.x Commits 2 - src: use std::optional for Worker thread id - fixup! src: use std::optional for Worker thread id Committers 2 - Anna Henningsen - GitHub PR-URL: https://github.com/nodejs/node/pull/41453 Refs: https://github.com/nodejs/node/pull/41421 Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/41453 Refs: https://github.com/nodejs/node/pull/41421 Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 09 Jan 2022 18:55:39 GMT ✔ Approvals: 4 ✔ - Tobias Nießen (@tniessen) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-852398248 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-847354707 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-848035956 ✔ - Michael Dawson (@mhdawson) (TSC): https://github.com/nodejs/node/pull/41453#pullrequestreview-848089907 ✖ GitHub CI is still running ℹ Last Full PR CI on 2022-01-14T10:22:46Z: https://ci.nodejs.org/job/node-test-pull-request/41866/ - Querying data for job/node-test-pull-request/41866/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/1698193651 |
Contributor
|
Landed in c22177f |
26 tasks
mawaregetsuka
pushed a commit
to mawaregetsuka/node
that referenced
this pull request
Jan 17, 2022
Refs: nodejs#41421 PR-URL: nodejs#41453 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
thedull
pushed a commit
to thedull/node
that referenced
this pull request
Jan 18, 2022
Refs: nodejs#41421 PR-URL: nodejs#41453 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Linkgoron
pushed a commit
to Linkgoron/node
that referenced
this pull request
Jan 31, 2022
Refs: nodejs#41421 PR-URL: nodejs#41453 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This file contains hidden or 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
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.
Refs: #41421