Changeset 6b067c4 in rtems


Ignore:
Timestamp:
Jun 4, 1996, 7:15:28 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3ff4688
Parents:
95645a4
Message:

renamed the local variable attrp to the_attr in pthread_create

Files:
2 edited

Legend:

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

    r95645a4 r6b067c4  
    581581)
    582582{
    583   const pthread_attr_t  *attrp;
     583  const pthread_attr_t  *the_attr;
    584584  Priority_Control       core_priority;
    585585  boolean                is_timesliced;
     
    592592  struct sched_param     schedparams;
    593593
    594   attrp = (attr) ? attr : &_POSIX_Threads_Default_attributes;
    595 
    596   if ( !attrp->is_initialized )
     594  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
     595
     596  if ( !the_attr->is_initialized )
    597597    return EINVAL;
    598598
     
    621621   */
    622622
    623   switch ( attrp->inheritsched ) {
     623  switch ( the_attr->inheritsched ) {
    624624    case PTHREAD_INHERIT_SCHED:
    625625      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
     
    628628      break;
    629629    case PTHREAD_EXPLICIT_SCHED:
    630       schedpolicy = attrp->schedpolicy;
    631       schedparams = attrp->schedparam;
     630      schedpolicy = the_attr->schedpolicy;
     631      schedparams = the_attr->schedparam;
    632632      break;
    633633  }
     
    639639  is_timesliced = FALSE;
    640640
    641   if ( !_POSIX_Priority_Is_valid( attrp->schedparam.sched_priority ) )
    642     return EINVAL;
    643  
    644   core_priority = _POSIX_Priority_To_core( attrp->schedparam.sched_priority );
     641  if ( !_POSIX_Priority_Is_valid( the_attr->schedparam.sched_priority ) )
     642    return EINVAL;
     643 
     644  core_priority = _POSIX_Priority_To_core(the_attr->schedparam.sched_priority);
    645645 
    646646  switch ( schedpolicy ) {
     
    694694    &_POSIX_Threads_Information,
    695695    the_thread,
    696     attrp->stackaddr,
    697     attrp->stacksize,
     696    the_attr->stackaddr,
     697    the_attr->stacksize,
    698698    is_fp,
    699699    core_priority,
     
    717717  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    718718
    719   api->Attributes = *attrp;
     719  api->Attributes = *the_attr;
    720720  api->detachstate = attr->detachstate;
    721721
  • cpukit/posix/src/pthread.c

    r95645a4 r6b067c4  
    581581)
    582582{
    583   const pthread_attr_t  *attrp;
     583  const pthread_attr_t  *the_attr;
    584584  Priority_Control       core_priority;
    585585  boolean                is_timesliced;
     
    592592  struct sched_param     schedparams;
    593593
    594   attrp = (attr) ? attr : &_POSIX_Threads_Default_attributes;
    595 
    596   if ( !attrp->is_initialized )
     594  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
     595
     596  if ( !the_attr->is_initialized )
    597597    return EINVAL;
    598598
     
    621621   */
    622622
    623   switch ( attrp->inheritsched ) {
     623  switch ( the_attr->inheritsched ) {
    624624    case PTHREAD_INHERIT_SCHED:
    625625      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
     
    628628      break;
    629629    case PTHREAD_EXPLICIT_SCHED:
    630       schedpolicy = attrp->schedpolicy;
    631       schedparams = attrp->schedparam;
     630      schedpolicy = the_attr->schedpolicy;
     631      schedparams = the_attr->schedparam;
    632632      break;
    633633  }
     
    639639  is_timesliced = FALSE;
    640640
    641   if ( !_POSIX_Priority_Is_valid( attrp->schedparam.sched_priority ) )
    642     return EINVAL;
    643  
    644   core_priority = _POSIX_Priority_To_core( attrp->schedparam.sched_priority );
     641  if ( !_POSIX_Priority_Is_valid( the_attr->schedparam.sched_priority ) )
     642    return EINVAL;
     643 
     644  core_priority = _POSIX_Priority_To_core(the_attr->schedparam.sched_priority);
    645645 
    646646  switch ( schedpolicy ) {
     
    694694    &_POSIX_Threads_Information,
    695695    the_thread,
    696     attrp->stackaddr,
    697     attrp->stacksize,
     696    the_attr->stackaddr,
     697    the_attr->stacksize,
    698698    is_fp,
    699699    core_priority,
     
    717717  api = the_thread->API_Extensions[ THREAD_API_POSIX ];
    718718
    719   api->Attributes = *attrp;
     719  api->Attributes = *the_attr;
    720720  api->detachstate = attr->detachstate;
    721721
Note: See TracChangeset for help on using the changeset viewer.