1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 05:15:08 +00:00
serenity/LibC/sched.cpp

14 lines
176 B
C++

#include <sched.h>
#include <errno.h>
#include <Kernel/Syscall.h>
extern "C" {
int sched_yield()
{
int rc = syscall(SC_yield);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
}