diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-31 01:11:28 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-05-31 01:11:28 +0000 |
commit | aa91dc91c9d9db80539b42aedbd578d61b90df06 (patch) | |
tree | 012cc1ccde498e6986af2ab5dcf76a239683d897 /ace/Remote_Tokens.cpp | |
parent | b75d5b247dad8a5fe0f1669bc27980a9b8680c27 (diff) | |
download | ATCD-aa91dc91c9d9db80539b42aedbd578d61b90df06.tar.gz |
ChangeLogTag:Mon May 30 18:10:56 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Remote_Tokens.cpp')
-rw-r--r-- | ace/Remote_Tokens.cpp | 88 |
1 files changed, 86 insertions, 2 deletions
diff --git a/ace/Remote_Tokens.cpp b/ace/Remote_Tokens.cpp index 36c0d98e156..f80fe9a3bf8 100644 --- a/ace/Remote_Tokens.cpp +++ b/ace/Remote_Tokens.cpp @@ -2,15 +2,20 @@ // $Id$ #include "ace/Remote_Tokens.h" + +#if defined (ACE_HAS_TOKENS_LIBRARY) + #include "ace/Singleton.h" #if !defined (__ACE_INLINE__) #include "ace/Remote_Tokens.inl" #endif /* __ACE_INLINE__ */ -#if defined (ACE_HAS_TOKENS_LIBRARY) -ACE_RCSID(ace, Remote_Tokens, "$Id$") +ACE_RCSID (ace, + Remote_Tokens, + "$Id$") + #if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) #define ACE_TSS_CONNECTION_MUTEX ACE_Thread_Mutex @@ -398,6 +403,28 @@ ACE_Remote_Token_Proxy::dump (void) const #endif /* ACE_HAS_DUMP */ } +ACE_Token_Proxy * +ACE_Remote_Mutex::clone (void) const +{ + ACE_Token_Proxy *temp; + ACE_NEW_RETURN (temp, + ACE_Remote_Mutex (this->name (), + ignore_deadlock_, + debug_), + 0); + return temp; +} + +ACE_Tokens * +ACE_Remote_Mutex::create_token (const ACE_TCHAR *name) +{ + ACE_Tokens *temp; + ACE_NEW_RETURN (temp, + ACE_Mutex_Token (name), + 0); + return temp; +} + void ACE_Remote_Mutex::dump (void) const { @@ -411,6 +438,34 @@ ACE_Remote_Mutex::dump (void) const #endif /* ACE_HAS_DUMP */ } +ACE_Tokens * +ACE_Remote_RLock::create_token (const ACE_TCHAR *name) +{ + ACE_Tokens *temp = 0; + ACE_NEW_RETURN (temp, + ACE_RW_Token (name), + 0); + return temp; +} + +int +ACE_Remote_RLock::type (void) const +{ + return ACE_RW_Token::READER; +} + +ACE_Token_Proxy * +ACE_Remote_RLock::clone (void) const +{ + ACE_Token_Proxy *temp = 0; + ACE_NEW_RETURN (temp, + ACE_Remote_RLock (this->name (), + ignore_deadlock_, + debug_), + 0); + return temp; +} + void ACE_Remote_RLock::dump (void) const { @@ -424,6 +479,35 @@ ACE_Remote_RLock::dump (void) const #endif /* ACE_HAS_DUMP */ } + +ACE_Tokens * +ACE_Remote_WLock::create_token (const ACE_TCHAR *name) +{ + ACE_Tokens *temp = 0; + ACE_NEW_RETURN (temp, + ACE_RW_Token (name), + 0); + return temp; +} + +int +ACE_Remote_WLock::type (void) const +{ + return ACE_RW_Token::WRITER; +} + +ACE_Token_Proxy * +ACE_Remote_WLock::clone (void) const +{ + ACE_Token_Proxy *temp = 0; + ACE_NEW_RETURN (temp, + ACE_Remote_WLock (this->name (), + ignore_deadlock_, + debug_), + 0); + return temp; +} + void ACE_Remote_WLock::dump (void) const { |