summaryrefslogtreecommitdiff
path: root/ace/Remote_Tokens.i
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-28 19:15:14 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-10-28 19:15:14 +0000
commit9738b1ad41774bd4d5086322d48793238c8694a7 (patch)
tree7aaaac48d29dabf36c646d4830cdba22e97a7e13 /ace/Remote_Tokens.i
parentaf4cd25a55a9c357b2c04823663bc93e70c0b657 (diff)
downloadATCD-9738b1ad41774bd4d5086322d48793238c8694a7.tar.gz
ChangeLogTag: Sun Oct 28 13:15:00 2001 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'ace/Remote_Tokens.i')
-rw-r--r--ace/Remote_Tokens.i48
1 files changed, 36 insertions, 12 deletions
diff --git a/ace/Remote_Tokens.i b/ace/Remote_Tokens.i
index 01fee89af45..f0cc90e5105 100644
--- a/ace/Remote_Tokens.i
+++ b/ace/Remote_Tokens.i
@@ -21,15 +21,23 @@ ACE_Remote_Mutex::ACE_Remote_Mutex (const ACE_TCHAR *token_name,
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_Mutex::clone (void) const
{
- return new ACE_Remote_Mutex (this->name (),
- ignore_deadlock_,
- debug_);
+ ACE_Token_Proxy *temp;
+ ACE_NEW_RETURN (temp,
+ ACE_Remote_Mutex (this->name (),
+ ignore_deadlock_,
+ debug_),
+ 0);
+ return temp;
}
ACE_INLINE ACE_Tokens *
ACE_Remote_Mutex::create_token (const ACE_TCHAR *name)
{
- return new ACE_Mutex_Token (name);
+ ACE_Tokens *temp;
+ ACE_NEW_RETURN (temp,
+ ACE_Mutex_Token (name),
+ 0);
+ return temp;
}
// ************************************************************
@@ -46,7 +54,11 @@ ACE_Remote_RLock::ACE_Remote_RLock (const ACE_TCHAR *token_name,
ACE_INLINE ACE_Tokens *
ACE_Remote_RLock::create_token (const ACE_TCHAR *name)
{
- return new ACE_RW_Token (name);
+ ACE_Tokens *temp = 0;
+ ACE_NEW_RETURN (temp,
+ ACE_RW_Token (name),
+ 0);
+ return temp;
}
ACE_INLINE int
@@ -58,9 +70,13 @@ ACE_Remote_RLock::type (void) const
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_RLock::clone (void) const
{
- return new ACE_Remote_RLock (this->name (),
- ignore_deadlock_,
- debug_);
+ ACE_Token_Proxy *temp = 0;
+ ACE_NEW_RETURN (temp,
+ ACE_Remote_RLock (this->name (),
+ ignore_deadlock_,
+ debug_),
+ 0);
+ return temp;
}
// ************************************************************
@@ -78,7 +94,11 @@ ACE_Remote_WLock::ACE_Remote_WLock (const ACE_TCHAR *token_name,
ACE_INLINE ACE_Tokens *
ACE_Remote_WLock::create_token (const ACE_TCHAR *name)
{
- return new ACE_RW_Token (name);
+ ACE_Tokens *temp = 0;
+ ACE_NEW_RETURN (temp,
+ ACE_RW_Token (name),
+ 0);
+ return temp;
}
ACE_INLINE int
@@ -90,9 +110,13 @@ ACE_Remote_WLock::type (void) const
ACE_INLINE ACE_Token_Proxy *
ACE_Remote_WLock::clone (void) const
{
- return new ACE_Remote_WLock (this->name (),
- ignore_deadlock_,
- debug_);
+ ACE_Token_Proxy *temp = 0;
+ ACE_NEW_RETURN (temp,
+ ACE_Remote_WLock (this->name (),
+ ignore_deadlock_,
+ debug_),
+ 0);
+ return temp;
}
#endif /* ACE_HAS_TOKENS_LIBRARY */