-
Notifications
You must be signed in to change notification settings - Fork 353
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 callback support to FileDescription::read #4110
base: master
Are you sure you want to change the base?
Conversation
abfa97f
to
88cbd55
Compare
Hi @RalfJung, I wanted to share some updates and seek your guidance on a few points:
Thanks in advance for your help and guidance! Looking forward to your insights. |
@rustbot ready |
So this is blocked on #4106, I assume.
I would prefer if you could split this into two separate PRs. Refactoring an existing interface should not be done in the same changeset as adding new functionality, if it can be avoided. Splitting changes in smaller PRs greatly helps with making them easier to review. |
88cbd55
to
fb2d16a
Compare
Hi @RalfJung, Thank you for your feedback and for highlighting the review challenges—I completely understand. This PR focuses on two key changes:
Let me know if there's anything else you'd like me to adjust. Thanks! 🙂 |
@rustbot ready |
* Introduce MachineCallbackState enum to represent operation outcomes * Consolidate unblock/timeout methods into single callback interface * Update thread blocking system to use new callback mechanism * Refactor mutex and condvar implementations for new callback pattern Signed-off-by: shamb0 <[email protected]>
* Introduce UnblockKind enum to represent operation outcomes * Consolidate unblock/timeout methods into single callback interface * Update thread blocking system to use new callback mechanism * Refactor mutex and condvar implementations for new callback pattern Signed-off-by: shamb0 <[email protected]>
- Implementing atomic reads for contiguous buffers Signed-off-by: shamb0 <[email protected]>
fb2d16a
to
59f70e8
Compare
Key Changes
IoTransferOperation
to manage atomic file transfersFileDescription::read
Context
This work completes stages 2 of the async file operations roadmap discussed here:
FileDescription::read
(this PR)readv()
using callbacks (this PR)