blob: 8abc4a2c00bf159b5b23b8f0ba44d01fdf3091ae (
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
38
39
40
41
42
43
|
// $Id$
#include "test_i.h"
#include "ace/ACE.h"
#if !defined(__ACE_INLINE__)
#include "test_i.inl"
#endif /* __ACE_INLINE__ */
void
Test_i::oneway_work_test (CORBA::ULong work)
{
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 &)
{
}
void
Test_i::twoway_work_test (CORBA::ULong work)
{
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 ()
{
this->orb_->shutdown (0);
}
|