2008-08-05 21:54:14 +04:00
|
|
|
/*
|
2012-07-19 22:11:40 +04:00
|
|
|
* Copyright 2008-2012 Haiku, Inc. All rights reserved.
|
2008-08-05 21:54:14 +04:00
|
|
|
* Distributed under the terms of the MIT license.
|
|
|
|
*/
|
|
|
|
#ifndef _SCHED_H_
|
|
|
|
#define _SCHED_H_
|
|
|
|
|
2009-10-27 15:34:27 +03:00
|
|
|
|
2008-08-05 21:54:14 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2009-10-27 15:34:27 +03:00
|
|
|
|
2009-10-27 16:10:17 +03:00
|
|
|
#define SCHED_FIFO 1
|
2009-10-27 15:34:27 +03:00
|
|
|
#define SCHED_RR 2
|
2009-10-27 16:10:17 +03:00
|
|
|
#define SCHED_SPORADIC 3
|
|
|
|
#define SCHED_OTHER 4
|
2009-10-27 01:56:43 +03:00
|
|
|
|
|
|
|
struct sched_param {
|
|
|
|
int sched_priority;
|
|
|
|
};
|
|
|
|
|
2009-10-27 15:34:27 +03:00
|
|
|
|
2008-08-05 21:54:14 +04:00
|
|
|
extern int sched_yield(void);
|
2009-10-27 01:56:43 +03:00
|
|
|
extern int sched_get_priority_min(int);
|
|
|
|
extern int sched_get_priority_max(int);
|
2008-08-05 21:54:14 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SCHED_H_ */
|