-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[core] Minor cpp changes around core worker #48262
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
Changes from all commits
0048901
34c8be3
67ff6fc
bf649c9
b88c105
7ff72eb
1293f86
24f0635
877242b
34f8199
b667628
d2c3259
5314b2f
a863ecc
869327e
28a8f25
5e089b9
9f8655a
0bcb639
f459cf6
085621c
15afd22
aae4aa9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,6 +104,7 @@ bool GetRequest::Wait(int64_t timeout_ms) { | |
| auto remaining_timeout_ms = timeout_ms; | ||
| auto timeout_timestamp = current_time_ms() + timeout_ms; | ||
| while (!is_ready_) { | ||
| // TODO (dayshah): see if using cv condition function instead of busy while helps. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this still relevant?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ya i think it could still be relevant, pretty sure using
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, let's do it in another PR, if needed |
||
| auto status = cv_.wait_for(lock, std::chrono::milliseconds(remaining_timeout_ms)); | ||
| auto current_timestamp = current_time_ms(); | ||
| remaining_timeout_ms = | ||
|
|
||
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.
Do we need to move since the parameter is const &?
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.
ya, my bad left it in even after changing param
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.
wait actually CancelActorTaskOnExecucutor takes by value, CancelTaskOnExecutor takes by const ref