]> git.saurik.com Git - apple/libc.git/blobdiff - pthreads/sched.h
Libc-262.tar.gz
[apple/libc.git] / pthreads / sched.h
diff --git a/pthreads/sched.h b/pthreads/sched.h
new file mode 100644 (file)
index 0000000..d67a482
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef _SCHED_H_
+#define _SCHED_H_
+
+#include <pthread_impl.h>
+
+/*
+ * 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_ */
+