1 /* 2 * Copyright 2008-2010 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT license. 4 */ 5 #ifndef _SCHED_H_ 6 #define _SCHED_H_ 7 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 14 #define SCHED_FIFO 1 15 #define SCHED_RR 2 16 #define SCHED_SPORADIC 3 17 #define SCHED_OTHER 4 18 19 struct sched_param { 20 int sched_priority; 21 }; 22 23 24 extern int sched_yield(void); 25 extern int sched_get_priority_min(int); 26 extern int sched_get_priority_max(int); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif /* _SCHED_H_ */ 33