blob: 72b6bf4f7aa9c4e21ec7b700d97700d5fe170b50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// $Id$
//
#include "Receiver_i.h"
Receiver_i::Receiver_i (void)
: message_count_ (0)
, byte_count_ (0)
{
}
void
Receiver_i::receive_payload (const Receiver::Payload &payload)
{
ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
this->message_count_++;
this->byte_count_ += payload.length ();
}
CORBA::Long
Receiver_i::get_event_count (void)
{
ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
return this->message_count_;
}
|