Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / LongUpcalls / Controller.cpp
blob8df632d681a7226d33fec39622ebd781c59d3ba1
1 #include "Controller.h"
3 Controller::Controller ()
4 : start_count_ (0)
5 , finish_count_ (0)
9 void
10 Controller::dump_results ()
12 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
13 if (this->start_count_ != this->finish_count_)
15 ACE_ERROR ((LM_ERROR,
16 "ERROR - mismatched count! (%d,%d)\n",
17 this->start_count_, this->finish_count_));
21 void
22 Controller::worker_started ()
24 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
25 this->start_count_++;
27 // ACE_DEBUG ((LM_DEBUG, "Received worker start report\n"));
30 void
31 Controller::worker_finished ()
33 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
34 this->finish_count_++;
36 // ACE_DEBUG ((LM_DEBUG, "Received worker completion report\n"));