Introduce a highest priority job for critical thread services

This commit is contained in:
Martin Willi
2011-05-16 15:24:15 +02:00
parent 4cf6f101d8
commit 1c8f58adb9
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,8 @@
#include "job.h"
ENUM(job_priority_names, JOB_PRIO_HIGH, JOB_PRIO_LOW,
ENUM(job_priority_names, JOB_PRIO_CRITICAL, JOB_PRIO_LOW,
"critical",
"high",
"medium",
"low",
+3 -1
View File
@@ -31,8 +31,10 @@ typedef enum job_priority_t job_priority_t;
* Priority classes of jobs
*/
enum job_priority_t {
/** Critical infrastructure jobs that should always been served */
JOB_PRIO_CRITICAL = 0,
/** Short jobs executed with highest priority */
JOB_PRIO_HIGH = 0,
JOB_PRIO_HIGH,
/** Default job priority */
JOB_PRIO_MEDIUM,
/** Low priority jobs with thread blocking operations */