From 1d428a3c16569471fce65a91e5840ae57d64951e Mon Sep 17 00:00:00 2001 From: Mark Johannes Date: Tue, 13 Aug 1996 19:06:12 +0000 Subject: task_1: added comments and print statement for task exit --- testsuites/psxtests/psx10/task.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testsuites') diff --git a/testsuites/psxtests/psx10/task.c b/testsuites/psxtests/psx10/task.c index 8f395624f1..f1bef38972 100644 --- a/testsuites/psxtests/psx10/task.c +++ b/testsuites/psxtests/psx10/task.c @@ -26,6 +26,8 @@ void *Task_1( { int status; +/* wait for a condition variable signal from Init */ + Task_id = pthread_self(); printf( "Task_1: ID is 0x%08x\n", Task_id ); @@ -43,6 +45,8 @@ void *Task_1( status = pthread_mutex_unlock( &Mutex_id ); assert( !status ); +/* wait for a condition variable broadcast from Init */ + status = pthread_mutex_lock( &Mutex_id ); assert( !status ); @@ -54,6 +58,7 @@ void *Task_1( status = pthread_mutex_unlock( &Mutex_id ); assert( !status ); + puts( "Task_1: task exit" ); pthread_exit( NULL ); return NULL; /* just so the compiler thinks we returned something */ -- cgit v1.2.3