summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-04 14:32:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-04 14:32:21 +0000
commit15974b65ea61303110208353e15375a5d78d9121 (patch)
treebac54f8a88d9efdb0f7f1dcf6720a6409a2cec45 /testsuites/psxtests/psx01/init.c
parentadded thread queue for list of threads waiting to join. (diff)
downloadrtems-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.c5
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 );