X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/3b2a1fe8d3d02703ddca1b0ead469074d4e47820..5b2abdfbf4211b6592cdd02b9507555a0ecbb04b:/pthreads/sched.h diff --git a/pthreads/sched.h b/pthreads/sched.h new file mode 100644 index 0000000..d67a482 --- /dev/null +++ b/pthreads/sched.h @@ -0,0 +1,17 @@ +#ifndef _SCHED_H_ +#define _SCHED_H_ + +#include + +/* + * Scheduling paramters + */ +#ifndef __POSIX_LIB__ +struct sched_param { int sched_priority; char opaque[__SCHED_PARAM_SIZE__]; }; +#endif + +extern int sched_yield(void); +extern int sched_get_priority_min(int); +extern int sched_get_priority_max(int); +#endif /* _SCHED_H_ */ +