Lines Matching +full:max +full:- +full:priority

4  * SPDX-License-Identifier: Apache-2.0
22 #define STATIC_THREAD_STACK_SIZE (MAX(1024, PTHREAD_STACK_MIN + CONFIG_TEST_EXTRA_STACK_SIZE))
139 /* can re-initialize a destroyed attr */ in ZTEST()
316 * policies so only check the Zephyr priority here. The posix policy and posix in inheritsched_entry()
317 * priority are derived from the Zephyr priority in any case. in inheritsched_entry()
319 zassert_equal(prio, pprio, "actual priority: %d, expected priority: %d", prio, in inheritsched_entry()
343 zassert_equal(act_prio, exp_prio, "actual priority: %d, expected priority: %d", act_prio, in inheritsched_entry()
355 extern int zephyr_to_posix_priority(int priority, int *policy); in test_pthread_attr_setinheritsched_common()
361 * values affected by inheritsched are policy / priority / contentionscope in test_pthread_attr_setinheritsched_common()
461 int pmin = -1; in ZTEST()
462 int pmax = -1; in ZTEST()
508 zassert_equal(-1, param.sched_priority); in ZTEST()
513 zassert_not_equal(-1, param.sched_priority, in ZTEST()
515 i == 0 ? "min" : "max", policy_names[policy], errno); in ZTEST()
517 i == 0 ? "min" : "max", policy_names[policy], errno); in ZTEST()
524 * IEEE 1003.1-2008 Section 2.8.4 in ZTEST()
531 "%s min/max inconsistency: pmin: %d pmax: %d", in ZTEST()
536 * cooperative threads use [-CONFIG_NUM_COOP_PRIORITIES,-1] and in ZTEST()
537 * preemptive threads use [0, CONFIG_NUM_PREEMPT_PRIORITIES - 1], in ZTEST()
538 * where the more negative thread has the higher priority. Since we in ZTEST()
539 * cannot map those directly (a return value of -1 indicates error), in ZTEST()
543 zassert_equal(pmax, nprio[policy] - 1, "unexpected pmax for %s", in ZTEST()
547 /* create threads with min and max priority levels for each policy */ in ZTEST()
566 /* set priority */ in ZTEST()