-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
4 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,6 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use zenoh::prelude::r#async::*; | ||
use zenoh::shm::protocol_implementations::posix::posix_shared_memory_provider_backend::PosixSharedMemoryProviderBackend; | ||
use zenoh::shm::protocol_implementations::posix::protocol_id::POSIX_PROTOCOL_ID; | ||
use zenoh::shm::provider::shared_memory_provider::{ | ||
BlockOn, GarbageCollect, SharedMemoryProviderBuilder, | ||
}; | ||
use zenoh::shm::provider::shared_memory_provider::{Deallocate, Defragment}; | ||
use zenoh::shm::provider::types::{AllocAlignment, MemoryLayout}; | ||
use zenoh::Result; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
|
@@ -28,7 +20,7 @@ async fn main() { | |
run().await.unwrap() | ||
} | ||
|
||
async fn run() -> Result<()> { | ||
async fn run() -> ZResult<()> { | ||
// Construct an SHM backend | ||
let backend = { | ||
// NOTE: code in this block is a specific PosixSharedMemoryProviderBackend API. | ||
|
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,6 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
use clap::Parser; | ||
use std::time::Duration; | ||
use zenoh::prelude::r#async::*; | ||
use zenoh_examples::CommonArgs; | ||
|
||
|
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