Lines Matching refs:contentionscope
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()
945 attr->contentionscope = PTHREAD_SCOPE_SYSTEM; in pthread_attr_init()