purely cosmetic commit: edited the introductory comments of several files to uniform...
[reactos.git] / posix / lib / psxdll / sched / yield.c
1 /* $Id: yield.c,v 1.2 2002/02/20 09:17:57 hyperion Exp $
2 */
3 /*
4 * COPYRIGHT: See COPYING in the top level directory
5 * PROJECT: ReactOS POSIX+ Subsystem
6 * FILE: subsys/psx/lib/psxdll/sched/yield.c
7 * PURPOSE: Yield processor
8 * PROGRAMMER: KJK::Hyperion <noog@libero.it>
9 * UPDATE HISTORY:
10 * 15/02/2002: Created
11 */
12
13 #include <ddk/ntddk.h>
14 #include <sched.h>
15 #include <psx/errno.h>
16
17 int sched_yield(void)
18 {
19 NTSTATUS nErrCode;
20
21 nErrCode = NtYieldExecution();
22
23 if(!NT_SUCCESS(nErrCode))
24 {
25 errno = __status_to_errno(nErrCode);
26 return (-1);
27 }
28
29 return (0);
30 }
31
32 /* EOF */
33