Changeset 0cd15947 in rtems


Ignore:
Timestamp:
08/12/96 15:15:51 (27 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
684c3c4
Parents:
5263668
Message:

Init: added pthread_cond_init with an attr non-NULL, initialized the attr again

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx10/init.c

    r5263668 r0cd15947  
    4848  assert( status == EINVAL );
    4949
     50  puts( "Init: pthread_condattr_init" );
     51  status = pthread_condattr_init( &attr );
     52  assert( !status );
     53
    5054  puts( "Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED" );
    5155  status = pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
     
    8993  assert( !status );
    9094
     95  puts( "Init: pthread_cond_init - attr" );
     96  status = pthread_cond_init( &cond, &attr );
     97  assert( !status );
     98
    9199  /* create a thread */
    92100
  • testsuites/psxtests/psx10/init.c

    r5263668 r0cd15947  
    4848  assert( status == EINVAL );
    4949
     50  puts( "Init: pthread_condattr_init" );
     51  status = pthread_condattr_init( &attr );
     52  assert( !status );
     53
    5054  puts( "Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED" );
    5155  status = pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
     
    8993  assert( !status );
    9094
     95  puts( "Init: pthread_cond_init - attr" );
     96  status = pthread_cond_init( &cond, &attr );
     97  assert( !status );
     98
    9199  /* create a thread */
    92100
Note: See TracChangeset for help on using the changeset viewer.