blob: 0401c153c6b926bf9014a5bfcd52d0e2004c4747 (
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
27
28
29
30
31
32
33
34
35
36
37
|
// $Id$
#include "test_i.h"
#include "ace/ACE.h"
#if !defined(__ACE_INLINE__)
#include "test_i.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Latency, test_i, "$Id$")
CORBA::ULongLong
Test_i::test_method (CORBA::ULongLong stamp,
CORBA::Environment&) ACE_THROW_SPEC (())
{
ACE_Time_Value tv (0, 0);
for (int i = 0; i != this->workload_; ++i)
{
const int n = 37;
ACE::is_prime (n, 2, n / 2);
ACE_OS::sleep (tv);
}
return stamp;
}
void
Test_i::time_stamp (CORBA::ULong &, CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException))
{
}
void
Test_i::shutdown (CORBA::Environment& ACE_TRY_ENV)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0, ACE_TRY_ENV);
}
|