NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libpthreads.a #include <pthread.h>int pthread_attr_getscope(const pthread_attr_t * attr, int * contentionscope);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
Thread creation attributes and their default values are summarized in pthread_attr_init(3POSIX) .
The contentionscope attribute specifies the scope of thread scheduling decisions relative to a pthread. In the CHORUS/POSIX Micro Realtime Profile, the only contentionscope value supported is PTHREAD_SCOPE_SYSTEM, which means that the thread competes directly with all other threads on the site for processor resources. The pthread_attr_getscope() and pthread_attr_setscope() functions respectively get and set the contentionscope attribute in the thread creation attribute object designated by attr .
On successful completion, all calls listed above return zero. Otherwise an error code is returned.
These calls do not set errno .
pthread_attr_setscope() was invoked with a contentionscope argument other than PTHREAD_SCOPE_SYSTEM.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | RETURN VALUES | ERRORS | ATTRIBUTES | SEE ALSO