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:
parent
55565a6099
commit
e166360e8d
|
@ -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 */
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
/* Default priority */
|
||||
|
||||
#define PTHREAD_DEFAULT_PRIORITY 100
|
||||
#define PTHREAD_DEFAULT_PRIORITY SCHED_PRIORITY_DEFAULT
|
||||
|
||||
/* Cancellation states used by pthread_setcancelstate() */
|
||||
|
||||
|
|
Loading…
Reference in New Issue