-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
add go integrate test #1792
Merged
Mixficsol
merged 26 commits into
OpenAtomFoundation:unstable
from
luky116:addGoIntegrateTest
Aug 3, 2023
Merged
add go integrate test #1792
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
37558c4
add go integrate test
luky116 eff05af
add go integrate test
luky116 0f5351c
add go integrate test
luky116 0013131
add go integrate test
luky116 958730b
temp test
luky116 c3a25f4
temp test
luky116 fc0d3dd
temp test
luky116 02be838
temp test
luky116 444e6d3
temp test
luky116 cb8bda1
temp test
luky116 301e599
add test
luky116 780da7f
temp test
luky116 ad89658
temp test
luky116 de90d53
add tcl
luky116 da62b85
Merge remote-tracking branch 'pika/unstable' into addGoIntegrateTest
luky116 859436b
add tcl
luky116 663c12c
reformat code
luky116 cdd09f8
add tcl
luky116 e4a8048
reformat code
luky116 86501ad
add tcl
luky116 13755aa
reformat code
luky116 db1428f
add tcl
luky116 c1f6c83
fix setxx
luky116 bc91da9
fix setxx
luky116 d50a0f5
add tcl
luky116 4f83245
add tcl
luky116 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
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
Here's a brief review of the code patch you provided:
queue_.size() > max_queue_size_
checks if the queue size has exceeded the maximum allowed size. However, it doesn't take any action to handle this situation. Depending on your requirements, you might consider adding logic to handle this case, such as discarding or rejecting new tasks when the queue is full.// wsignal_.wait(lock, [this]() { return should_stop(); });
indicates that it was removed from the code patch. If this behavior is intentional and you don't need to check the queue size before waiting, then it is fine. Otherwise, ensure that the removal was not accidental and the existing condition[this]() { return should_stop(); }
is sufficient.Overall, the reviewed code patch looks appropriate, but further improvements could be made depending on your specific requirements.