summaryrefslogtreecommitdiff
path: root/TAO/tests/LongUpcalls/Controller.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-16 20:15:25 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-16 20:15:25 +0000
commit99bb6fb665611ddd98a71c75d9f33bfd0c1d7c9b (patch)
tree9d6733547f5f42ea89ded14110c3d1ae1e61d484 /TAO/tests/LongUpcalls/Controller.cpp
parent135a5704b855f6be64fb62c4dee40cd566348df2 (diff)
downloadATCD-99bb6fb665611ddd98a71c75d9f33bfd0c1d7c9b.tar.gz
ChangeLogTag:Fri Jun 16 12:07:39 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'TAO/tests/LongUpcalls/Controller.cpp')
-rw-r--r--TAO/tests/LongUpcalls/Controller.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/TAO/tests/LongUpcalls/Controller.cpp b/TAO/tests/LongUpcalls/Controller.cpp
new file mode 100644
index 00000000000..759a6169192
--- /dev/null
+++ b/TAO/tests/LongUpcalls/Controller.cpp
@@ -0,0 +1,44 @@
+//
+// $Id$
+//
+#include "Controller.h"
+
+ACE_RCSID(LongUpcalls, Controller, "$Id$")
+
+Controller::Controller (void)
+ : start_count_ (0)
+ , finish_count_ (0)
+{
+}
+
+void
+Controller::dump_results ()
+{
+ ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mutex_);
+ if (this->start_count_ != this->finish_count_)
+ {
+ ACE_ERROR ((LM_ERROR,
+ "ERROR - mismatched count! (%d,%d)\n",
+ this->start_count_, this->finish_count_));
+ }
+}
+
+void
+Controller::worker_started (CORBA::Environment &)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mutex_);
+ this->start_count_++;
+
+ // ACE_DEBUG ((LM_DEBUG, "Received worker start report\n"));
+}
+
+void
+Controller::worker_finished (CORBA::Environment &)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ACE_GUARD (ACE_SYNCH_MUTEX, ace_mon, this->mutex_);
+ this->finish_count_++;
+
+ // ACE_DEBUG ((LM_DEBUG, "Received worker completion report\n"));
+}