blob: 7b48928c7d2f04fe83bdc8789c38f539f024d3b3 (
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
|
// -*- C++ -*-
#include "Request_Interceptor.h"
ACE_RCSID (Request_Interceptor_Flow,
Request_Interceptor,
"$Id$")
Request_Interceptor::Request_Interceptor (const char *name)
: name_ (name),
starting_interception_point_count_ (0),
ending_interception_point_count_ (0)
{
}
char *
Request_Interceptor::name (
ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return CORBA::string_dup (this->name_.in ());
}
void
Request_Interceptor::destroy (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CORBA::ULong s_count =
this->starting_interception_point_count_.value ();
CORBA::ULong e_count =
this->ending_interception_point_count_.value ();
if (s_count != e_count)
{
ACE_ERROR ((LM_ERROR,
"(%P) ERROR: Interceptor \"%s\"\n"
"(%P) The number of starting interception point "
"calls (%u)\n"
"(%P) did not equal the number of ending "
"interception \n"
"(%P) point calls (%u).\n\n",
this->name_.in (),
s_count,
e_count));
ACE_THROW (CORBA::INTERNAL ());
}
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong>;
template class ACE_Atomic_Op_Ex<TAO_SYNCH_MUTEX, CORBA::ULong>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Atomic_Op<TAO_SYNCH_MUTEX, CORBA::ULong>
#pragma instantiate ACE_Atomic_Op_Ex<TAO_SYNCH_MUTEX, CORBA::ULong>
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
|