mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 02:58:01 +08:00
sched: Map both NZERO and PTHREAD_DEFAULT_PRIORITY to SCHED_PRIORITY_DEFAULT
to unify the default thread priority Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
55565a6099
commit
e166360e8d
+2
-2
@@ -281,10 +281,10 @@
|
||||
#define NL_TEXTMAX _POSIX2_LINE_MAX
|
||||
|
||||
/* NZERO
|
||||
* Default process priority. Minimum Acceptable Value: 128
|
||||
* Default process priority. Minimum Acceptable Value: 100
|
||||
*/
|
||||
|
||||
#define NZERO 128
|
||||
#define NZERO SCHED_PRIORITY_DEFAULT
|
||||
|
||||
/* Required for asynchronous I/O */
|
||||
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@
|
||||
|
||||
/* Default priority */
|
||||
|
||||
#define PTHREAD_DEFAULT_PRIORITY 100
|
||||
#define PTHREAD_DEFAULT_PRIORITY SCHED_PRIORITY_DEFAULT
|
||||
|
||||
/* Cancellation states used by pthread_setcancelstate() */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user