Searched refs:inheritsched (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/posix/common/src/ |
D | pthread_attr.c | 285 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/ |
D | pthread.c | 421 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()
|
D | posix_internal.h | 33 bool inheritsched: 1; member
|
/Zephyr-latest/include/zephyr/posix/ |
D | pthread.h | 426 int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inheritsched); 427 int pthread_attr_setinheritsched(pthread_attr_t *attr, int inheritsched);
|