Author: axeld Date: 2009-10-27 14:10:17 +0100 (Tue, 27 Oct 2009) New Revision: 33788 Changeset: http://dev.haiku-os.org/changeset/33788/haiku Modified: haiku/trunk/headers/posix/sched.h haiku/trunk/src/system/libroot/posix/scheduler.cpp Log: * Added SCHED_SPORADIC, and sorted the constants the way it's done in the specs. * Also changed their numbering. Modified: haiku/trunk/headers/posix/sched.h =================================================================== --- haiku/trunk/headers/posix/sched.h 2009-10-27 12:34:27 UTC (rev 33787) +++ haiku/trunk/headers/posix/sched.h 2009-10-27 13:10:17 UTC (rev 33788) @@ -11,9 +11,10 @@ #endif -#define SCHED_OTHER 1 +#define SCHED_FIFO 1 #define SCHED_RR 2 -#define SCHED_FIFO 4 +#define SCHED_SPORADIC 3 +#define SCHED_OTHER 4 struct sched_param { int sched_priority; Modified: haiku/trunk/src/system/libroot/posix/scheduler.cpp =================================================================== --- haiku/trunk/src/system/libroot/posix/scheduler.cpp 2009-10-27 12:34:27 UTC (rev 33787) +++ haiku/trunk/src/system/libroot/posix/scheduler.cpp 2009-10-27 13:10:17 UTC (rev 33788) @@ -27,6 +27,7 @@ switch (policy) { case SCHED_FIFO: case SCHED_RR: + case SCHED_SPORADIC: case SCHED_OTHER: return B_LOW_PRIORITY; @@ -43,6 +44,7 @@ switch (policy) { case SCHED_FIFO: case SCHED_RR: + case SCHED_SPORADIC: case SCHED_OTHER: return B_URGENT_DISPLAY_PRIORITY;