Changeset 2c207d1f in rtems


Ignore:
Timestamp:
Jun 4, 1996, 8:36:37 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
09c1e31d
Parents:
65911c32
Message:

make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/pthread.c

    r65911c32 r2c207d1f  
    227227  switch ( contentionscope ) {
    228228    case PTHREAD_SCOPE_PROCESS:
    229     case PTHREAD_SCOPE_SYSTEM:
    230229      attr->contentionscope = contentionscope;
    231230      return 0;
     231
     232    case PTHREAD_SCOPE_SYSTEM:
     233      return ENOSYS;
    232234
    233235    default:
     
    637639
    638640#if 0
    639   int contentionscope;
    640641  int schedpolicy;
    641642  struct sched_param schedparam;
     
    666667      break;
    667668  }
     669
     670  /*
     671   *  Check the contentionscope since rtems only supports PROCESS wide
     672   *  contention (i.e. no system wide contention).
     673   */
     674
     675  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
     676    return ENOSYS;
    668677
    669678  /*
  • cpukit/posix/src/pthread.c

    r65911c32 r2c207d1f  
    227227  switch ( contentionscope ) {
    228228    case PTHREAD_SCOPE_PROCESS:
    229     case PTHREAD_SCOPE_SYSTEM:
    230229      attr->contentionscope = contentionscope;
    231230      return 0;
     231
     232    case PTHREAD_SCOPE_SYSTEM:
     233      return ENOSYS;
    232234
    233235    default:
     
    637639
    638640#if 0
    639   int contentionscope;
    640641  int schedpolicy;
    641642  struct sched_param schedparam;
     
    666667      break;
    667668  }
     669
     670  /*
     671   *  Check the contentionscope since rtems only supports PROCESS wide
     672   *  contention (i.e. no system wide contention).
     673   */
     674
     675  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
     676    return ENOSYS;
    668677
    669678  /*
Note: See TracChangeset for help on using the changeset viewer.