Skip to content

Commit 47d1b51

Browse files
authored
Disable realtime for hulks_webots explicitly (#1773)
* Realtime disable hack * rename feature * Re-build cargo lock * Update cargo lock
1 parent 560c271 commit 47d1b51

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

crates/code_generation/src/cyclers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ fn generate_start_method(cycler_kind: CyclerKind) -> TokenStream {
391391
let scheduler_tokens = match cycler_kind {
392392
CyclerKind::Perception => TokenStream::new(),
393393
CyclerKind::RealTime => quote! {
394-
#[cfg(feature = "realtime")]
394+
#[cfg(all(feature = "realtime", not(feature = "is_webots")))]
395395
unsafe {
396396
let priority = libc::sched_param {
397397
sched_priority: 5,

crates/hulk/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ source_analyzer = { workspace = true }
5050
[features]
5151
realtime = ["libc"]
5252
systemd = ["dep:systemd"]
53+
is_webots = []

0 commit comments

Comments
 (0)