Changeset c54f3ce in rtems


Ignore:
Timestamp:
Jan 31, 2008, 11:41:56 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
920343e
Parents:
dfaa1a7
Message:

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • posix/src/pthreadinitthreads.c: Clean up error paths.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rdfaa1a7 rc54f3ce  
     12008-01-31      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/src/pthreadinitthreads.c: Clean up error paths.
     4
    152008-01-31      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • cpukit/posix/src/pthreadinitthreads.c

    rdfaa1a7 rc54f3ce  
    6868
    6969  for ( index=0 ; index < maximum ; index++ ) {
    70     status = pthread_attr_init( &attr );
    71     assert( !status );
    72 
    73     status = pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
    74     assert( !status );
    75 
    76     status = pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
    77     assert( !status );
     70    /*
     71     * There is no way for these calls to fail in this situation.
     72     */
     73    (void) pthread_attr_init( &attr );
     74    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
     75    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
    7876
    7977    status = pthread_create(
     
    8381      NULL
    8482    );
    85     assert( !status );
     83    if ( status )
     84      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, TRUE, status );
    8685  }
    8786}
Note: See TracChangeset for help on using the changeset viewer.