diff options
Diffstat (limited to 'ACE/TAO/performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.cpp')
-rw-r--r-- | ACE/TAO/performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ACE/TAO/performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.cpp b/ACE/TAO/performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.cpp new file mode 100644 index 00000000000..c8e7c26e294 --- /dev/null +++ b/ACE/TAO/performance-tests/Sequence_Latency/Thread_Pool/Roundtrip.cpp @@ -0,0 +1,59 @@ +// +// $Id$ +// +#include "Roundtrip.h" + +ACE_RCSID(Thread_Pool_Latency, Roundtrip, "$Id$") + +Roundtrip::Roundtrip (CORBA::ORB_ptr orb) + : orb_ (CORBA::ORB::_duplicate (orb)) +{ +} + +Test::Timestamp +Roundtrip::test_octet_method (const Test::octet_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +Test::Timestamp +Roundtrip::test_long_method (const Test::long_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +Test::Timestamp +Roundtrip::test_char_method (const Test::char_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +Test::Timestamp +Roundtrip::test_longlong_method (const Test::longlong_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +Test::Timestamp +Roundtrip::test_double_method (const Test::double_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +Test::Timestamp +Roundtrip::test_short_method (const Test::short_load &, + Test::Timestamp send_time) +{ + return send_time; +} + +void +Roundtrip::shutdown (void) +{ + this->orb_->shutdown (0); +} |