diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-12 15:15:51 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-12 15:15:51 +0000 |
commit | 0cd15947c8789604b182d8f387610dc7d6b2d53a (patch) | |
tree | 1a20816bc871bd3584f12b81ec52e6211252995a /c/src/tests/psxtests/psx10 | |
parent | Init: added prliminary phtread_cond_init and destroy cases. (diff) | |
download | rtems-0cd15947c8789604b182d8f387610dc7d6b2d53a.tar.bz2 |
Init: added pthread_cond_init with an attr non-NULL, initialized the attr again
Diffstat (limited to 'c/src/tests/psxtests/psx10')
-rw-r--r-- | c/src/tests/psxtests/psx10/init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx10/init.c b/c/src/tests/psxtests/psx10/init.c index 3990d03329..de04bcdd82 100644 --- a/c/src/tests/psxtests/psx10/init.c +++ b/c/src/tests/psxtests/psx10/init.c @@ -47,6 +47,10 @@ void *POSIX_Init( printf( "status = %d\n", status ); assert( status == EINVAL ); + puts( "Init: pthread_condattr_init" ); + status = pthread_condattr_init( &attr ); + assert( !status ); + puts( "Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED" ); status = pthread_condattr_setpshared( &attr, PTHREAD_PROCESS_SHARED ); assert( !status ); @@ -88,6 +92,10 @@ void *POSIX_Init( status = pthread_cond_destroy( &cond ); assert( !status ); + puts( "Init: pthread_cond_init - attr" ); + status = pthread_cond_init( &cond, &attr ); + assert( !status ); + /* create a thread */ /* |