00001
00002
00003
00004 #if defined (ACE_HAS_TOKENS_LIBRARY)
00005
00006 ACE_INLINE
00007 ACE_Remote_Mutex::ACE_Remote_Mutex (void)
00008 {
00009 ACE_TRACE ("ACE_Remote_Mutex::ACE_Remote_Mutex");
00010 }
00011
00012 ACE_INLINE
00013 ACE_Remote_Mutex::ACE_Remote_Mutex (const ACE_TCHAR *token_name,
00014 int ignore_deadlock,
00015 int debug)
00016 {
00017 ACE_TRACE ("ACE_Remote_Mutex::ACE_Remote_Mutex");
00018 this->open (token_name, ignore_deadlock, debug);
00019 }
00020
00021 ACE_INLINE ACE_Token_Proxy *
00022 ACE_Remote_Mutex::clone (void) const
00023 {
00024 ACE_Token_Proxy *temp;
00025 ACE_NEW_RETURN (temp,
00026 ACE_Remote_Mutex (this->name (),
00027 ignore_deadlock_,
00028 debug_),
00029 0);
00030 return temp;
00031 }
00032
00033 ACE_INLINE ACE_Tokens *
00034 ACE_Remote_Mutex::create_token (const ACE_TCHAR *name)
00035 {
00036 ACE_Tokens *temp;
00037 ACE_NEW_RETURN (temp,
00038 ACE_Mutex_Token (name),
00039 0);
00040 return temp;
00041 }
00042
00043
00044
00045 ACE_INLINE
00046 ACE_Remote_RLock::ACE_Remote_RLock (const ACE_TCHAR *token_name,
00047 int ignore_deadlock,
00048 int debug)
00049 {
00050 ACE_TRACE ("ACE_Remote_RLock::ACE_Remote_RLock");
00051 this->open (token_name, ignore_deadlock, debug);
00052 }
00053
00054 ACE_INLINE ACE_Tokens *
00055 ACE_Remote_RLock::create_token (const ACE_TCHAR *name)
00056 {
00057 ACE_Tokens *temp = 0;
00058 ACE_NEW_RETURN (temp,
00059 ACE_RW_Token (name),
00060 0);
00061 return temp;
00062 }
00063
00064 ACE_INLINE int
00065 ACE_Remote_RLock::type (void) const
00066 {
00067 return ACE_RW_Token::READER;
00068 }
00069
00070 ACE_INLINE ACE_Token_Proxy *
00071 ACE_Remote_RLock::clone (void) const
00072 {
00073 ACE_Token_Proxy *temp = 0;
00074 ACE_NEW_RETURN (temp,
00075 ACE_Remote_RLock (this->name (),
00076 ignore_deadlock_,
00077 debug_),
00078 0);
00079 return temp;
00080 }
00081
00082
00083
00084 ACE_INLINE
00085 ACE_Remote_WLock::ACE_Remote_WLock (const ACE_TCHAR *token_name,
00086 int ignore_deadlock,
00087 int debug)
00088 {
00089 ACE_TRACE ("ACE_Remote_WLock::ACE_Remote_WLock");
00090 this->open (token_name, ignore_deadlock, debug);
00091 }
00092
00093
00094 ACE_INLINE ACE_Tokens *
00095 ACE_Remote_WLock::create_token (const ACE_TCHAR *name)
00096 {
00097 ACE_Tokens *temp = 0;
00098 ACE_NEW_RETURN (temp,
00099 ACE_RW_Token (name),
00100 0);
00101 return temp;
00102 }
00103
00104 ACE_INLINE int
00105 ACE_Remote_WLock::type (void) const
00106 {
00107 return ACE_RW_Token::WRITER;
00108 }
00109
00110 ACE_INLINE ACE_Token_Proxy *
00111 ACE_Remote_WLock::clone (void) const
00112 {
00113 ACE_Token_Proxy *temp = 0;
00114 ACE_NEW_RETURN (temp,
00115 ACE_Remote_WLock (this->name (),
00116 ignore_deadlock_,
00117 debug_),
00118 0);
00119 return temp;
00120 }
00121
00122 #endif