From 2b3eede0b834a82c7dce5ec328f3929c0effc536 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 8 Feb 2001 16:31:20 +0000 Subject: Fixes to new mutex routines and various tests. --- sched.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'sched.c') diff --git a/sched.c b/sched.c index 1891bdf..af58bb3 100644 --- a/sched.c +++ b/sched.c @@ -134,51 +134,6 @@ pthread_getschedparam(pthread_t thread, int *policy, } -int -pthread_setconcurrency(int level) -{ - if (level < 0) - { - return EINVAL; - } - else - { - return 0; - } -} - -int -pthread_getconcurrency(void) -{ - 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 -} - /* * On Windows98, THREAD_PRIORITY_LOWEST is (-2) and * THREAD_PRIORITY_HIGHEST is 2, and everything works just fine. -- cgit v1.2.3