summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 19:06:12 +0000
committerMark Johannes <Mark.Johannes@OARcorp.com>1996-08-13 19:06:12 +0000
commit1d428a3c16569471fce65a91e5840ae57d64951e (patch)
treefd022b9850fcfc4e6bde8a29be892f837fa584ab /testsuites/psxtests
parentInit.c: added timewait case, added broadcast case (diff)
downloadrtems-1d428a3c16569471fce65a91e5840ae57d64951e.tar.bz2
task_1: added comments and print statement for task exit
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psx10/task.c5
1 files changed, 5 insertions, 0 deletions
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 */