18169e6b4SAxel Dörfler /* 2*173f54f1SMatt Madia * Copyright 2008-2012 Haiku, Inc. All rights reserved. 38169e6b4SAxel Dörfler * Distributed under the terms of the MIT license. 48169e6b4SAxel Dörfler */ 58169e6b4SAxel Dörfler #ifndef _SCHED_H_ 68169e6b4SAxel Dörfler #define _SCHED_H_ 78169e6b4SAxel Dörfler 8d88b4037SAxel Dörfler 98169e6b4SAxel Dörfler #ifdef __cplusplus 108169e6b4SAxel Dörfler extern "C" { 118169e6b4SAxel Dörfler #endif 128169e6b4SAxel Dörfler 13d88b4037SAxel Dörfler 14954da749SAxel Dörfler #define SCHED_FIFO 1 15f386c591SJérôme Duval #define SCHED_RR 2 16954da749SAxel Dörfler #define SCHED_SPORADIC 3 17954da749SAxel Dörfler #define SCHED_OTHER 4 18f386c591SJérôme Duval 19f386c591SJérôme Duval struct sched_param { 20f386c591SJérôme Duval int sched_priority; 21f386c591SJérôme Duval }; 22f386c591SJérôme Duval 23d88b4037SAxel Dörfler 248169e6b4SAxel Dörfler extern int sched_yield(void); 25f386c591SJérôme Duval extern int sched_get_priority_min(int); 26f386c591SJérôme Duval extern int sched_get_priority_max(int); 278169e6b4SAxel Dörfler 288169e6b4SAxel Dörfler #ifdef __cplusplus 298169e6b4SAxel Dörfler } 308169e6b4SAxel Dörfler #endif 318169e6b4SAxel Dörfler 328169e6b4SAxel Dörfler #endif /* _SCHED_H_ */ 33