3 Sender::Sender (CORBA::ORB_ptr orb
)
6 , orb_ (CORBA::ORB::_duplicate (orb
))
12 Sender::dump_results ()
14 ACE_GUARD (TAO_SYNCH_MUTEX
, ace_mon
, this->mutex_
);
16 "Total messages = %d\n"
23 Sender::is_done () const
25 return this->is_done_
;
29 Sender::get_data (CORBA::ULong size
,
30 Test::Payload_out payload
)
32 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX
,
37 ++this->message_count_
;
39 new Test::Payload (size
);
40 payload
->length (size
);
41 this->byte_count_
+= size
;
47 Sender::get_event_count ()
49 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX
,
53 return this->message_count_
;
65 if (this->is_done_
== false)
67 ACE_GUARD (TAO_SYNCH_MUTEX
,
71 if (this->is_done_
== false)
72 this->is_done_
= true;