make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope.

This commit is contained in:
Joel Sherrill
1996-06-04 20:36:37 +00:00
parent 65911c32fb
commit 2c207d1f84
2 changed files with 22 additions and 4 deletions
+11 -2
View File
@@ -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;
@@ -666,6 +667,14 @@ int pthread_create(
break;
}
/*
* 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.
*/
+11 -2
View File
@@ -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;
@@ -666,6 +667,14 @@ int pthread_create(
break;
}
/*
* 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.
*/