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.
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
[try_put_and_wait] Part 2: Add implementation of try_put_and_wait feature for buffering nodes #1412
[try_put_and_wait] Part 2: Add implementation of try_put_and_wait feature for buffering nodes #1412
Changes from 33 commits
19a86e2
dbe50f7
660646e
531da5b
f97c794
7afdd9d
da15916
92bf552
2bb5948
73eb513
f92503a
6d82b64
bc01522
6d6c145
4e05f31
842381c
2c011ed
67226f3
708d655
ed5d05b
811b9b9
703104a
f6f7673
e08d81f
4029091
5d66123
2033045
967aa53
c77e9c5
5aa2e34
0fd4b26
fc1239f
0321596
3691466
eeffec0
0b2b098
03c9391
ac27bb1
a23dc02
a82c649
6787ae5
078f3ad
fab7913
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does it make sense to make it a single method as
get_item_impl
? (may be for consistency)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 am not sure I understood correctly.
get_item
should be considered a public API for a cache.get_item_impl
- as a private method. We need to keep the existing public APIget_item(v)
and add a new oneget_item(v, metainfo)
and implement both of them on top ofget_item_impl
.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 suppose for try_put_task, there are calls like try_put_task_impl(t __TBB_FLOW_GRAPH_METAINFO_ARG(message_metainfo{})). But for get_item, you'd need to create a temporary that is just dropped. While for try_put_task you still want to send the empty metainfo. Is this the reason there are two get_item_impl functions instead of something like the single try_put_task_impl function?