Skip to content

Commit

Permalink
adjust get_edge_value_for_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
biabbas committed Oct 14, 2024
1 parent b5c7e75 commit d2fd276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vxworks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl ThreadPriority {

match policy {
#[cfg_attr(
not(any(target_os = "linux", target_os = "android")),
not(any(target_os = "linux", target_os = "android", target_os = "vxworks")),
allow(unused_variables)
)]
ThreadSchedulePolicy::Normal(normal) => {
Expand All @@ -373,7 +373,7 @@ impl ThreadPriority {
PriorityPolicyEdgeValueType::Maximum => NICENESS_MAX as libc::c_int,
})
}
} else if #[cfg(any(target_os = "macos", target_os = "ios", target_os = "vxworks"))] {
} else if #[cfg(any(target_os = "macos", target_os = "ios"))] {
// macOS/iOS allows specifying the priority using sched params.
get_edge_priority(policy)
} else {
Expand Down

0 comments on commit d2fd276

Please sign in to comment.