mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 03:56:42 +00:00
10 lines
231 B
Rust
10 lines
231 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::{prelude::*, thread::Thread};
|
|
|
|
pub fn sys_sched_yield(_ctx: &Context) -> Result<SyscallReturn> {
|
|
Thread::yield_now();
|
|
Ok(SyscallReturn::Return(0))
|
|
}
|