mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
15 lines
176 B
C++
15 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);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|