diff options
author | rpj <rpj> | 2001-02-08 16:31:20 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-02-08 16:31:20 +0000 |
commit | 2b3eede0b834a82c7dce5ec328f3929c0effc536 (patch) | |
tree | 24414750f16e0c7bc7d231139d7f20a76b512ae4 /attr.c | |
parent | 3c0fbfafe563b7b312d60c42c0d58a3a1f4d5930 (diff) |
Fixes to new mutex routines and various tests.exp-2001-02-09-passed
Diffstat (limited to 'attr.c')
-rw-r--r-- | attr.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -494,3 +494,32 @@ pthread_attr_setdetachstate(pthread_attr_t *attr, (*attr)->detachstate = detachstate; return 0; } + + +int +pthread_attr_setscope(pthread_attr_t *attr, int contentionscope) +{ +#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING + if (contentionscope != PTHREAD_SCOPE_SYSTEM) + { + return ENOTSUP; + } + + return 0; +#else + return ENOSYS; +#endif +} + + +int +pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope) +{ +#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING + *contentionscope = PTHREAD_SCOPE_SYSTEM; + return 0; +#else + return ENOSYS; +#endif +} + |