Searched refs:contentionscope (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/posix/common/src/ |
D | pthread_attr.c | 242 int contentionscope = BIOS_FOOD; in ZTEST() local 249 zassert_equal(pthread_attr_getscope(NULL, &contentionscope), EINVAL); in ZTEST() 250 zassert_equal(pthread_attr_getscope(&uninit_attr, &contentionscope), in ZTEST() 256 zassert_ok(pthread_attr_getscope(&attr, &contentionscope)); in ZTEST() 257 zassert_equal(contentionscope, PTHREAD_SCOPE_SYSTEM); in ZTEST() 262 int contentionscope = BIOS_FOOD; in ZTEST() local 269 zassert_equal(pthread_attr_setscope(NULL, contentionscope), EINVAL); in ZTEST() 271 contentionscope), in ZTEST() 279 zassert_ok(pthread_attr_getscope(&attr, &contentionscope)); in ZTEST() 280 zassert_equal(contentionscope, PTHREAD_SCOPE_SYSTEM); in ZTEST()
|
/Zephyr-latest/lib/posix/options/ |
D | pthread.c | 378 int pthread_attr_getscope(const pthread_attr_t *_attr, int *contentionscope) in pthread_attr_getscope() argument 382 if (!__attr_is_initialized(attr) || contentionscope == NULL) { in pthread_attr_getscope() 385 *contentionscope = attr->contentionscope; in pthread_attr_getscope() 394 int pthread_attr_setscope(pthread_attr_t *_attr, int contentionscope) in pthread_attr_setscope() argument 402 if (!(contentionscope == PTHREAD_SCOPE_PROCESS || in pthread_attr_setscope() 403 contentionscope == PTHREAD_SCOPE_SYSTEM)) { in pthread_attr_setscope() 404 LOG_DBG("%s contentionscope %d", "Invalid", contentionscope); in pthread_attr_setscope() 407 if (contentionscope == PTHREAD_SCOPE_PROCESS) { in pthread_attr_setscope() 409 LOG_DBG("%s contentionscope %d", "Unsupported", contentionscope); in pthread_attr_setscope() 412 attr->contentionscope = contentionscope; in pthread_attr_setscope() [all …]
|
D | posix_internal.h | 32 bool contentionscope: 1; member
|
/Zephyr-latest/include/zephyr/posix/ |
D | pthread.h | 424 int pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope); 425 int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope);
|