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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/* -*- C++ -*- */
// $Id$
#if defined (ACE_HAS_TOKENS_LIBRARY)
ACE_INLINE
ACE_Remote_Mutex::ACE_Remote_Mutex (void)
{
ACE_TRACE ("ACE_Remote_Mutex::ACE_Remote_Mutex");
}
ACE_INLINE
ACE_Remote_Mutex::ACE_Remote_Mutex (const ACE_TCHAR *token_name,
int ignore_deadlock,
int debug)
{
ACE_TRACE ("ACE_Remote_Mutex::ACE_Remote_Mutex");
this->open (token_name, ignore_deadlock, debug);
}
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_Mutex::clone (void) const
{
return new ACE_Remote_Mutex (this->name (),
ignore_deadlock_,
debug_);
}
ACE_INLINE ACE_Tokens *
ACE_Remote_Mutex::create_token (const ACE_TCHAR *name)
{
return new ACE_Mutex_Token (name);
}
// ************************************************************
ACE_INLINE
ACE_Remote_RLock::ACE_Remote_RLock (const ACE_TCHAR *token_name,
int ignore_deadlock,
int debug)
{
ACE_TRACE ("ACE_Remote_RLock::ACE_Remote_RLock");
this->open (token_name, ignore_deadlock, debug);
}
ACE_INLINE ACE_Tokens *
ACE_Remote_RLock::create_token (const ACE_TCHAR *name)
{
return new ACE_RW_Token (name);
}
ACE_INLINE int
ACE_Remote_RLock::type (void) const
{
return ACE_RW_Token::READER;
}
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_RLock::clone (void) const
{
return new ACE_Remote_RLock (this->name (),
ignore_deadlock_,
debug_);
}
// ************************************************************
ACE_INLINE
ACE_Remote_WLock::ACE_Remote_WLock (const ACE_TCHAR *token_name,
int ignore_deadlock,
int debug)
{
ACE_TRACE ("ACE_Remote_WLock::ACE_Remote_WLock");
this->open (token_name, ignore_deadlock, debug);
}
ACE_INLINE ACE_Tokens *
ACE_Remote_WLock::create_token (const ACE_TCHAR *name)
{
return new ACE_RW_Token (name);
}
ACE_INLINE int
ACE_Remote_WLock::type (void) const
{
return ACE_RW_Token::WRITER;
}
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_WLock::clone (void) const
{
return new ACE_Remote_WLock (this->name (),
ignore_deadlock_,
debug_);
}
#endif /* ACE_HAS_TOKENS_LIBRARY */
|