Skip to content

Commit

Permalink
Test the limit of ZRuntime again
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanYuYuan committed Apr 11, 2024
1 parent 08b7eaa commit 71e2fab
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions commons/zenoh-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,23 @@ impl RuntimeParam {
#[derive(Hash, Eq, PartialEq, Clone, Copy, Debug, ConfigureZRuntime, Deserialize)]
pub enum ZRuntime {
#[serde(rename = "app")]
#[param(worker_threads = 1)]
#[param(worker_threads = 1, max_blocking_threads = 1)]
Application,

#[serde(rename = "acc")]
#[param(worker_threads = 1)]
#[param(worker_threads = 1, handover = Some(ZRuntime::Application))]
Acceptor,

#[serde(rename = "tx")]
#[param(worker_threads = 1)]
#[param(worker_threads = 1, max_blocking_threads = 1)]
TX,

#[serde(rename = "rx")]
#[param(worker_threads = 1)]
#[param(worker_threads = 1, handover = Some(ZRuntime::Application))]
RX,

#[serde(rename = "net")]
#[param(worker_threads = 1)]
#[param(worker_threads = 1, handover = Some(ZRuntime::Application))]
Net,
}

Expand Down

0 comments on commit 71e2fab

Please sign in to comment.