summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/pthread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-04 20:36:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-04 20:36:37 +0000
commit2c207d1f846a36713735317fa789dcc3bf22cbb9 (patch)
tree1b606e077170a77ce48c023b876984629a228967 /c/src/exec/posix/src/pthread.c
parentmade sure _Thread_Enable_dispatch is not invoked in cases (diff)
downloadrtems-2c207d1f846a36713735317fa789dcc3bf22cbb9.tar.bz2
make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope.
Diffstat (limited to 'c/src/exec/posix/src/pthread.c')
-rw-r--r--c/src/exec/posix/src/pthread.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index 41725a31e5..df85978ea6 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -226,10 +226,12 @@ int pthread_attr_setscope(
switch ( contentionscope ) {
case PTHREAD_SCOPE_PROCESS:
- case PTHREAD_SCOPE_SYSTEM:
attr->contentionscope = contentionscope;
return 0;
+ case PTHREAD_SCOPE_SYSTEM:
+ return ENOSYS;
+
default:
return EINVAL;
}
@@ -636,7 +638,6 @@ int pthread_create(
*/
#if 0
- int contentionscope;
int schedpolicy;
struct sched_param schedparam;
@@ -667,6 +668,14 @@ int pthread_create(
}
/*
+ * Check the contentionscope since rtems only supports PROCESS wide
+ * contention (i.e. no system wide contention).
+ */
+
+ if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
+ return ENOSYS;
+
+ /*
* Interpret the scheduling parameters.
*/