diff options
Diffstat (limited to 'TAO/performance-tests/RTCorba/Oneways/Reliable/test_i.cpp')
-rw-r--r-- | TAO/performance-tests/RTCorba/Oneways/Reliable/test_i.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/TAO/performance-tests/RTCorba/Oneways/Reliable/test_i.cpp b/TAO/performance-tests/RTCorba/Oneways/Reliable/test_i.cpp new file mode 100644 index 00000000000..97cb2161a4d --- /dev/null +++ b/TAO/performance-tests/RTCorba/Oneways/Reliable/test_i.cpp @@ -0,0 +1,53 @@ +// $Id$ + +#include "test_i.h" +#include "ace/ACE.h" + +ACE_RCSID(Reliable, test_i, "$Id$") + +#if !defined(__ACE_INLINE__) +#include "test_i.inl" +#endif /* __ACE_INLINE__ */ + +void +Test_i::oneway_work_test (CORBA::ULong work + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + for (CORBA::ULong i = 0; i < work; i++) + { + // Eat a little CPU + /* takes about 40.2 usecs on a 167 MHz Ultra2 */ + u_long n = 11UL; + ACE::is_prime (n, 2, n / 2); + } +} + +void +Test_i::oneway_payload_test (const Test::data & + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ +} + +void +Test_i::twoway_work_test (CORBA::ULong work + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + for (CORBA::ULong i = 0; i < work; i++) + { + // Eat a little CPU + /* takes about 40.2 usecs on a 167 MHz Ultra2 */ + u_long n = 11UL; + ACE::is_prime (n, 2, n / 2); + } +} + +void +Test_i::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED ACE_ENV_SINGLE_ARG_PARAMETER) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + this->orb_->shutdown (0 + ACE_ENV_ARG_PARAMETER); +} |