-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put ProtocolID and ChunkDescriptor into SHM metadata: less wire overh…
…ead and less structure sizes for SHM
- Loading branch information
1 parent
95265b0
commit 4a46568
Showing
8 changed files
with
61 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
use std::sync::atomic::{AtomicBool, AtomicU32}; | ||
use std::sync::atomic::{AtomicBool, AtomicU32, AtomicUsize}; | ||
|
||
// Chunk header | ||
#[stabby::stabby] | ||
|
@@ -25,4 +25,12 @@ pub struct ChunkHeaderType { | |
pub refcount: AtomicU32, | ||
pub watchdog_invalidated: AtomicBool, | ||
pub generation: AtomicU32, | ||
|
||
/// Protocol identifier for particular SHM implementation | ||
pub protocol: AtomicU32, | ||
|
||
/// The data chunk descriptor | ||
pub segment: AtomicU32, | ||
pub chunk: AtomicU32, | ||
pub len: AtomicUsize, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters