summaryrefslogtreecommitdiff
path: root/LibC/sched.cpp
blob: ce48add52236e372d39e49e8aa1bf02c74b6a9fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}

}