Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / MT_BiDir / Receiver_i.cpp
blob900e505506a0f40ff38635b6c118e83de9e75c01
1 #include "Receiver_i.h"
3 Receiver_i::Receiver_i (void)
4 : message_count_ (0)
5 , byte_count_ (0)
10 void
11 Receiver_i::receive_payload (const Receiver::Payload &payload)
13 ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
14 this->message_count_++;
15 this->byte_count_ += payload.length ();
18 CORBA::Long
19 Receiver_i::get_event_count (void)
21 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
22 return this->message_count_;