ladybird/LibC/sched.cpp
2019-04-22 00:13:41 +02:00

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);
}
}