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 | 382 int pthread_attr_getscope(const pthread_attr_t *_attr, int *contentionscope) in pthread_attr_getscope() argument 386 if (!__attr_is_initialized(attr) || contentionscope == NULL) { in pthread_attr_getscope() 389 *contentionscope = attr->contentionscope; in pthread_attr_getscope() 398 int pthread_attr_setscope(pthread_attr_t *_attr, int contentionscope) in pthread_attr_setscope() argument 406 if (!(contentionscope == PTHREAD_SCOPE_PROCESS || in pthread_attr_setscope() 407 contentionscope == PTHREAD_SCOPE_SYSTEM)) { in pthread_attr_setscope() 408 LOG_DBG("%s contentionscope %d", "Invalid", contentionscope); in pthread_attr_setscope() 411 if (contentionscope == PTHREAD_SCOPE_PROCESS) { in pthread_attr_setscope() 413 LOG_DBG("%s contentionscope %d", "Unsupported", contentionscope); in pthread_attr_setscope() 416 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);
|