Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / LongUpcalls / Controller.cpp
blob5492961d17c58066b59eaba2093d62cb11054b31
1 #include "Controller.h"
3 Controller::Controller (void)
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 (void)
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 (void)
33 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
34 this->finish_count_++;
36 // ACE_DEBUG ((LM_DEBUG, "Received worker completion report\n"));