|
@@ -36,10 +36,10 @@ impl Error {
|
|
/// Cooperatively gives up a timeslice to the OS scheduler.
|
|
/// Cooperatively gives up a timeslice to the OS scheduler.
|
|
pub fn yield_now() {
|
|
pub fn yield_now() {
|
|
unsafe {
|
|
unsafe {
|
|
- #[cfg(unix)]
|
|
|
|
|
|
+ #[cfg(not(target_os = "redox"))]
|
|
syscall!(SCHED_YIELD);
|
|
syscall!(SCHED_YIELD);
|
|
|
|
|
|
- #[cfg(redox)]
|
|
|
|
|
|
+ #[cfg(target_os = "redox")]
|
|
::system::syscall::unix::sys_yield();
|
|
::system::syscall::unix::sys_yield();
|
|
}
|
|
}
|
|
}
|
|
}
|