blob: 63f8f0e5c532bd5bd4683ed2380bc957a973f3c3 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// $Id$
#define ACE_BUILD_SVC_DLL
#include "Benchmark.h"
#if defined (ACE_HAS_THREADS)
// Global variables (used by the dynamically linked services).
ACE_Svc_Export int synch_count;
int buffer;
// Initialize the static variables.
/* static */
sig_atomic_t Benchmark_Performance::done_ = 0;
sig_atomic_t
Benchmark_Performance::done (void)
{
return Benchmark_Performance::done_;
}
void
Benchmark_Performance::done (sig_atomic_t d)
{
Benchmark_Performance::done_ = d;
}
int
Benchmark_Performance::svc (void)
{
return -1;
}
int
Benchmark_Performance::init (int, char **)
{
return 1;
}
int
Benchmark_Performance::info (char **, size_t) const
{
return -1;
}
int
Benchmark_Performance::fini (void)
{
return -1;
}
void *
Benchmark_Performance::svc_run (Benchmark_Performance *bp)
{
return (void *) (bp->svc () == -1 ? -1 : 0);
}
#endif /* ACE_HAS_THREADS */
|