diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-24 02:52:50 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-24 02:52:50 +0000 |
commit | e365eb5056517720c90e3a1080df7bd02c0f2049 (patch) | |
tree | 0c72ad09200a2e7eb82b2a2e7f44a6f7724d7da1 | |
parent | 08e792a36b19ed67d980546e264aa1f5f0108428 (diff) | |
download | ATCD-e365eb5056517720c90e3a1080df7bd02c0f2049.tar.gz |
removed close () because it didn't really close the Task, and added printout to main () after all tasks have been spawned to help debug non-termination
-rw-r--r-- | tests/Priority_Task_Test.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/Priority_Task_Test.cpp b/tests/Priority_Task_Test.cpp index eeec7377c2c..e7d6f4fb2b0 100644 --- a/tests/Priority_Task_Test.cpp +++ b/tests/Priority_Task_Test.cpp @@ -29,7 +29,6 @@ class Priority_Task : public ACE_Task<ACE_MT_SYNCH> public: Priority_Task (void); - int close (u_long = 0); int open (void *); int svc (void); @@ -44,13 +43,6 @@ Priority_Task::Priority_Task (void) } int -Priority_Task::close (u_long) -{ - ACE_DEBUG ((LM_DEBUG, "(%t) leaving Task with priority %d\n", this->priority_)); - return 0; -} - -int Priority_Task::open (void *arg) { this->priority_ = *(int *) arg; @@ -137,11 +129,12 @@ main (int, char *[]) ACE_SCOPE_THREAD); } + ACE_DEBUG ((LM_DEBUG, "(%t) %d tasks spawned, wait for them to exit . . .\n", + ACE_MAX_ITERATIONS)); + // Wait for all tasks to exit. ACE_Service_Config::thr_mgr ()->wait (); - for (i = 0; i < ACE_MAX_ITERATIONS; i++) - tasks[i].close (); #else ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); #endif /* ACE_HAS_THREADS */ |