Home
last modified time | relevance | path

Searched refs:inheritsched (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/posix/common/src/
Dpthread_attr.c285 int inheritsched = BIOS_FOOD; in ZTEST() local
292 zassert_equal(pthread_attr_getinheritsched(NULL, &inheritsched), EINVAL); in ZTEST()
293 zassert_equal(pthread_attr_getinheritsched(&uninit_attr, &inheritsched), in ZTEST()
299 zassert_ok(pthread_attr_getinheritsched(&attr, &inheritsched)); in ZTEST()
300 zassert_equal(inheritsched, PTHREAD_INHERIT_SCHED); in ZTEST()
306 int inheritsched; in inheritsched_entry() local
309 zassert_ok(pthread_attr_getinheritsched(&attr, &inheritsched)); in inheritsched_entry()
313 if (inheritsched == PTHREAD_INHERIT_SCHED) { in inheritsched_entry()
349 static void test_pthread_attr_setinheritsched_common(bool inheritsched) in test_pthread_attr_setinheritsched_common() argument
370 zassert_ok(pthread_attr_setinheritsched(&attr, inheritsched)); in test_pthread_attr_setinheritsched_common()
/Zephyr-latest/lib/posix/options/
Dpthread.c421 int pthread_attr_getinheritsched(const pthread_attr_t *_attr, int *inheritsched) in pthread_attr_getinheritsched() argument
425 if (!__attr_is_initialized(attr) || inheritsched == NULL) { in pthread_attr_getinheritsched()
428 *inheritsched = attr->inheritsched; in pthread_attr_getinheritsched()
437 int pthread_attr_setinheritsched(pthread_attr_t *_attr, int inheritsched) in pthread_attr_setinheritsched() argument
446 if (inheritsched != PTHREAD_INHERIT_SCHED && inheritsched != PTHREAD_EXPLICIT_SCHED) { in pthread_attr_setinheritsched()
447 LOG_DBG("Invalid inheritsched %d", inheritsched); in pthread_attr_setinheritsched()
451 attr->inheritsched = inheritsched; in pthread_attr_setinheritsched()
649 if (t->attr.inheritsched == PTHREAD_INHERIT_SCHED) { in pthread_create()
946 attr->inheritsched = PTHREAD_INHERIT_SCHED; in pthread_attr_init()
Dposix_internal.h33 bool inheritsched: 1; member
/Zephyr-latest/include/zephyr/posix/
Dpthread.h426 int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inheritsched);
427 int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);