-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Factories rework #663
Factories rework #663
Conversation
🤖 Upon creation, pull request description does not have a link to an issue. If there is a related issue, please add it to the description using any of the supported formats. |
, encoding_map_(arena_) | ||
// TODO: |
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.
@gavv It seems the network_loop_ below requires the factories. Do I pass the pools into it and let it create it's own factories?
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.
Yep, sounds good. roc_node will instantiate arenas pools and pass them to roc_netio and roc_pipeline. They, in turn, will instantiate factories when needed.
🤖 The latest upstream change made this pull request unmergeable. Please resolve the merge conflicts. |
Done, see these 3 commits: (especially the last one) I think this part of the task is done now:
Note that BufferFactory was replaced with FrameFactory, see commit messages for details. In roc_pipeline, factories are currently created in ReceiverSource and SenderSink and passed to lower-level components like ReceiverSession and SenderSession. For implementing per-session limits, we may need to pass pools instead, but that would be an easy change isolated in roc_pipeline. |
I think we can close this PR? Did I miss anything? |
Closing, feel free to ping me if I missed anything. |
No prob. Thanks @gavv for bearing with me. |
No worries! |
Why
For #610
This is for the factories rework.
What
Testing
WIP