diff options
author | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 19:06:12 +0000 |
---|---|---|
committer | Mark Johannes <Mark.Johannes@OARcorp.com> | 1996-08-13 19:06:12 +0000 |
commit | 1d428a3c16569471fce65a91e5840ae57d64951e (patch) | |
tree | fd022b9850fcfc4e6bde8a29be892f837fa584ab /c | |
parent | Init.c: added timewait case, added broadcast case (diff) | |
download | rtems-1d428a3c16569471fce65a91e5840ae57d64951e.tar.bz2 |
task_1: added comments and print statement for task exit
Diffstat (limited to 'c')
-rw-r--r-- | c/src/tests/psxtests/psx10/task.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psx10/task.c b/c/src/tests/psxtests/psx10/task.c index 8f395624f1..f1bef38972 100644 --- a/c/src/tests/psxtests/psx10/task.c +++ b/c/src/tests/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 */ |