Skip to content

Commit aa916e4

Browse files
committed
exclude ohos too
1 parent b01b938 commit aa916e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sched.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,10 @@ mod sched_affinity {
317317
}
318318

319319
// musl has additional sched_param fields that we don't support yet
320-
#[cfg(all(linux_android, not(target_env = "musl")))]
320+
#[cfg(all(linux_android, not(target_env = "musl"), not(target_env = "ohos")))]
321321
pub use self::sched_priority::*;
322322

323-
#[cfg(all(linux_android, not(target_env = "musl")))]
324-
#[cfg(linux_android)]
323+
#[cfg(all(linux_android, not(target_env = "musl"), not(target_env = "ohos")))]
325324
mod sched_priority {
326325
use std::mem::MaybeUninit;
327326

@@ -333,6 +332,7 @@ mod sched_priority {
333332
#[repr(C)]
334333
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
335334
/// Schedule parameters for a thread (currently only priority is supported).
335+
/// This is a wrapper around `libc::sched_param`
336336
pub struct SchedParam {
337337
/// Priority of the current schedule.
338338
pub sched_priority: libc::c_int,

0 commit comments

Comments
 (0)