Files
haiku-beta6/src/system/libroot/posix/scheduler.cpp
T
Axel Dörfler 8169e6b4e6 * Patch by Andreas that adds sched.h, and sched_yield() to Haiku.
* This closes ticket #2568.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-08-05 17:54:14 +00:00

18 lines
223 B
C++

/*
* Copyright 2008, Andreas Färber, [email protected]
* Distributed under the terms of the MIT license.
*/
#include <sched.h>
#include <syscalls.h>
int
sched_yield(void)
{
_kern_thread_yield();
return 0;
}