Repository navigation
src: rewrite task runner in c++ #52609
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
Merged
nodejs-github-bot
merged 15 commits into
nodejs:main
from
anonrig:rewrite-task-runner-in-cpp
May 2, 2024
+404
−189
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
720350a
src: rewrite task runner in c++
anonrig 92dacf0
fix: use shared_ptr instead of unique_ptr for shared ressource, use o…
lemire 620dd73
pass std::shared_ptr by value
lemire b545865
lint
lemire 9cfe2fd
fix: leak
lemire 8433257
fix: lint
lemire 6634e5e
fix: solving memory leak with std::unique_ptr
lemire 84e0566
lint
lemire ec015f1
fix: adding detached flag
lemire 57434f5
fix: the cmd flag was wrong
lemire 060051c
fix: prevent Windows from escaping quotes
lemire 650bd77
Update node_task_runner.cc
anonrig b734452
Update node_task_runner.cc
anonrig a7afb78
add more documentation
anonrig 435aed9
fix
anonrig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: use shared_ptr instead of unique_ptr for shared ressource, use o…
…perator[] instead of find_field.
- Loading branch information
commit 92dacf0a5506aa3a8dfb999d61c0abcd8cd2742a
There are no files selected for viewing
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
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
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
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
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
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
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.
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.
Nit: some code comment documentation of what this is would be helpful. I know we're not too good or consistent on documenting our header files, etc but someone coming into the codebase fresh may have a difficult time understanding what this is used for.
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.
Well this is a first. I'll definitely add more comments! I'm more than happy to! :-)
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.
heh, it's something I've been wanting for a while... we need lots more comments throughout our code
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.
I thought comments were discouraged? Almost all the C++ code is comment-less and I assumed that's what was expected.
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.
There was once a bit of mindshare in Node.js for the "code should be self-documenting" idea, but fortunately I think that has mostly gone away. There's too much complexity in a lot of the Node.js core code for that to be reasonable and make any amount of sense to newbies. 😅