-
Notifications
You must be signed in to change notification settings - Fork 59
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
Adopted shm api #405
Adopted shm api #405
Conversation
Conflicts: include/zenoh_commons.h include/zenoh_macros.h
- support POSIX SHM provider
Conflicts: include/zenoh_commons.h include/zenoh_macros.h
- C Provider and Client API tests
Conflicts: include/zenoh_commons.h include/zenoh_macros.h
Conflicts: Cargo.toml.in
- shm to payload API integration - examples - some improvements
Conflicts: src/payload.rs src/session.rs
- small fixes in tests
Conflicts: include/zenoh_commons.h src/payload.rs
|
||
/// Mutably borrows ZShm slice | ||
#[no_mangle] | ||
pub extern "C" fn z_shm_loan_mut(this: &mut z_owned_shm_t) -> &mut z_loaned_shm_t { |
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.
What is the difference between these 2 methods? can we have just one loan_mut, that is allowed to return null ?
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 didn't catch your question, sorry
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.
Sorry, I did not see the difference in return value. The question should likely be what is the difference between &mut z_loan_shm_mut_t and &mut z_loaned_shm_mut_t, I believe the user would expect that the first one would allow to modify zsh slice as well
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.
Conflicts: include/zenoh_commons.h
Conflicts: docs/examples.rst include/zenoh_commons.h src/get.rs
- CI without shared-memory feature by default
@DenisBiryukov91 @milyin I think we can merge |
- move shm types to zenoh_opaque.h
Looks good for me. |
Conflicts: build-resources/opaque-types/src/lib.rs splitguide.yaml
Conflicts: Cargo.lock build-resources/opaque-types/Cargo.lock build-resources/opaque-types/Cargo.toml build-resources/opaque-types/src/lib.rs src/get.rs
No description provided.