diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-04 14:32:21 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-06-04 14:32:21 +0000 |
commit | 15974b65ea61303110208353e15375a5d78d9121 (patch) | |
tree | bac54f8a88d9efdb0f7f1dcf6720a6409a2cec45 /testsuites/psxtests/psx01/init.c | |
parent | added thread queue for list of threads waiting to join. (diff) | |
download | rtems-15974b65ea61303110208353e15375a5d78d9121.tar.bz2 |
added basic test cases for pthread_self and pthread_equal
Diffstat (limited to 'testsuites/psxtests/psx01/init.c')
-rw-r--r-- | testsuites/psxtests/psx01/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c index 98fb6d41ac..5a3d387802 100644 --- a/testsuites/psxtests/psx01/init.c +++ b/testsuites/psxtests/psx01/init.c @@ -113,6 +113,11 @@ void *POSIX_Init( printf( "sec (%d), nsec (%d) remaining\n", (int)tr.tv_sec, (int)tr.tv_nsec ); assert( !tr.tv_sec && !tr.tv_nsec ); + /* get id of this thread */ + + Init_id = pthread_self(); + printf( "Init's ID is 0x%08x\n", Init_id ); + /* create a thread */ status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL ); |