Skip to content

Commit

Permalink
Rollback to default "shared-memory" in internals
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed May 29, 2024
1 parent 1b63606 commit 78d44be
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ spin = "0.9.5"
unwrap-infallible = "0.1.5"
const_format = "0.2.32"
# shared-memory enabled for zenoh even if zenoh-c "shared-memory" feature is disabled. This is to make "std::mem::transmute" work for `ZSLice`
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"], default-features = false }
zenoh-protocol = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api" }
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"], default-features = false }
zenoh-protocol = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["shared-memory"] }
zenoh-util = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api" }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"] }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"] }


[build-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ spin = "0.9.5"
unwrap-infallible = "0.1.5"
const_format = "0.2.32"
# shared-memory enabled for zenoh even if zenoh-c "shared-memory" feature is disabled. This is to make "std::mem::transmute" work for `ZSLice`
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"], default-features = false }
zenoh-protocol = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api" }
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"], default-features = false }
zenoh-protocol = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["shared-memory"] }
zenoh-util = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api" }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"] }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"] }


[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions build-resources/opaque-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ default = ["zenoh/default"]

[dependencies]
# shared-memory enabled for zenoh even if zenoh-c "shared-memory" feature is disabled. This is to make "std::mem::transmute" work for `ZSLice`
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"], default-features = false }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable"] }
zenoh = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"], default-features = false }
zenoh-ext = { version = "0.11.0-dev", git = "https://github.com/ZettaScaleLabs/zenoh.git", branch = "fix_shm_async_api", features = ["unstable", "shared-memory"] }
const_format = "0.2.32"
20 changes: 10 additions & 10 deletions include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ typedef struct ALIGN(8) z_owned_bytes_t {
* A loaned serialized Zenoh data.
*/
typedef struct ALIGN(8) z_loaned_bytes_t {
uint8_t _0[32];
uint8_t _0[40];
} z_loaned_bytes_t;
/**
* A contiguous owned sequence of bytes allocated by Zenoh.
Expand Down Expand Up @@ -420,7 +420,7 @@ typedef struct z_loaned_closure_owned_query_t {
* Queries are atomically reference-counted, letting you extract them from the callback that handed them to you by cloning.
*/
typedef struct ALIGN(8) z_owned_query_t {
uint8_t _0[136];
uint8_t _0[144];
} z_owned_query_t;
/**
* A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks:
Expand Down Expand Up @@ -483,7 +483,7 @@ typedef struct z_loaned_closure_reply_t {
* A loaned reply.
*/
typedef struct ALIGN(8) z_loaned_reply_t {
uint8_t _0[240];
uint8_t _0[256];
} z_loaned_reply_t;
/**
* A structure that contains all the elements for stateful, memory-leak-free callbacks.
Expand Down Expand Up @@ -519,7 +519,7 @@ typedef struct z_loaned_closure_sample_t {
* A loaned Zenoh sample.
*/
typedef struct ALIGN(8) z_loaned_sample_t {
uint8_t _0[224];
uint8_t _0[240];
} z_loaned_sample_t;
/**
* A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks.
Expand Down Expand Up @@ -712,13 +712,13 @@ typedef struct z_delete_options_t {
* The <a href="https://zenoh.io/docs/manual/abstractions/#encoding"> encoding </a> of Zenoh data.
*/
typedef struct ALIGN(8) z_owned_encoding_t {
uint8_t _0[40];
uint8_t _0[48];
} z_owned_encoding_t;
/**
* A loaned Zenoh encoding.
*/
typedef struct ALIGN(8) z_loaned_encoding_t {
uint8_t _0[40];
uint8_t _0[48];
} z_loaned_encoding_t;
/**
* The replies consolidation strategy to apply on replies to a `z_get()`.
Expand Down Expand Up @@ -926,7 +926,7 @@ typedef struct z_query_reply_err_options_t {
* A loaned Zenoh value.
*/
typedef struct ALIGN(8) z_loaned_value_t {
uint8_t _0[72];
uint8_t _0[88];
} z_loaned_value_t;
/**
* A loaned Zenoh queryable.
Expand All @@ -938,7 +938,7 @@ typedef struct ALIGN(8) z_loaned_queryable_t {
* An owned reply from a Queryable to a `z_get()`.
*/
typedef struct ALIGN(8) z_owned_reply_t {
uint8_t _0[240];
uint8_t _0[256];
} z_owned_reply_t;
/**
* A closure is a structure that contains all the elements for stateful, memory-leak-free callbacks:
Expand Down Expand Up @@ -990,7 +990,7 @@ typedef struct z_loaned_reply_channel_closure_t {
* Like all owned types, it should be freed using z_drop or z_sample_drop.
*/
typedef struct ALIGN(8) z_owned_sample_t {
uint8_t _0[224];
uint8_t _0[240];
} z_owned_sample_t;
/**
* A Zenoh <a href="https://zenoh.io/docs/manual/abstractions/#timestamp"> timestamp </a>.
Expand Down Expand Up @@ -1109,7 +1109,7 @@ typedef struct z_time_t {
* A Zenoh value - a compination of payload and its encoding.
*/
typedef struct ALIGN(8) z_owned_value_t {
uint8_t _0[72];
uint8_t _0[88];
} z_owned_value_t;
/**
* A user allocated string, viewed as a key expression.
Expand Down
2 changes: 1 addition & 1 deletion include/zenoh_concrete.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef struct ALIGN(8) z_owned_session_t {
* A loaned Zenoh query.
*/
typedef struct ALIGN(8) z_loaned_query_t {
uint8_t _0[136];
uint8_t _0[144];
} z_loaned_query_t;
/**
* A loaned Zenoh session.
Expand Down

0 comments on commit 78d44be

Please sign in to comment.