MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / sched_yield

Function sched_yield

src/backend/linux_raw/thread/syscalls.rs:512–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510
511#[inline]
512pub(crate) fn sched_yield() {
513 unsafe {
514 // See the documentation for [`crate::thread::sched_yield`] for why
515 // errors are ignored.
516 syscall_readonly!(__NR_sched_yield).decode_void();
517 }
518}
519
520#[inline]
521pub(crate) fn membarrier_query() -> MembarrierQuery {

Callers

nothing calls this directly

Calls 1

decode_voidMethod · 0.80

Tested by

no test coverage detected