Merge pull request #3321 from deantvv/iss-3319

posix: add os.SCHED_* for macos
This commit is contained in:
Jeong YunWon
2021-10-17 00:27:09 +09:00
committed by GitHub

View File

@@ -105,7 +105,8 @@ pub mod module {
target_os = "android",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd"
target_os = "netbsd",
target_os = "macos"
))]
#[pyattr]
const SCHED_RR: i32 = libc::SCHED_RR;
@@ -114,7 +115,8 @@ pub mod module {
target_os = "android",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd"
target_os = "netbsd",
target_os = "macos"
))]
#[pyattr]
const SCHED_FIFO: i32 = libc::SCHED_FIFO;
@@ -122,7 +124,8 @@ pub mod module {
target_os = "linux",
target_os = "freebsd",
target_os = "dragonfly",
target_os = "netbsd"
target_os = "netbsd",
target_os = "macos"
))]
#[pyattr]
const SCHED_OTHER: i32 = libc::SCHED_OTHER;