Introduce a highest priority job for critical thread services
This commit is contained in:
1 parent
4cf6f101d8
commit
1c8f58adb9
2 files changed
+5
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user