12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #include "pthread.h"
- #include "implement.h"
- int
- pthread_attr_setscope (pthread_attr_t * attr, int contentionscope)
- {
- #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
- switch (contentionscope)
- {
- case PTHREAD_SCOPE_SYSTEM:
- (*attr)->contentionscope = contentionscope;
- return 0;
- case PTHREAD_SCOPE_PROCESS:
- return ENOTSUP;
- default:
- return EINVAL;
- }
- #else
- return ENOSYS;
- #endif
- }
|