summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2012-11-20 23:53:28 +0000
committerSteve Huston <shuston@riverace.com>2012-11-20 23:53:28 +0000
commit7f6165a3ac38c65dbb4081693992a635b1579346 (patch)
tree4711c589af49e64170d4f56675be03a721df47a3
parentff39dd68c8535a414f6ed533e320ea7db000f881 (diff)
downloadATCD-7f6165a3ac38c65dbb4081693992a635b1579346.tar.gz
ChangeLogTag:Tue Nov 20 23:55:57 UTC 2012 Steve Huston <shuston@riverace.com>
-rw-r--r--ChangeLog7
-rw-r--r--ace/OS_NS_netdb.inl4
-rw-r--r--ace/config-hpux-11.00.h7
3 files changed, 12 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 566ca8f6686..0e9268d738c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Nov 20 23:55:57 UTC 2012 Steve Huston <shuston@riverace.com>
+
+ * ace/config-hpux-11.00.h:
+ * ace/OS_NS_netdb.inl: Although HP-UX 11 doesn't have the _r
+ netdb calls, the regular ones are reentrant for multiple threads.
+ Therefore, do not use the mutex-acquiring wrapper for HP-UX 11.
+
Wed Sep 5 20:09:09 UTC 2012 Steve Huston <shuston@riverace.com>
* ace/SSL/SSL_SOCK_Stream.inl (recv_i): Added back in logic to wait
diff --git a/ace/OS_NS_netdb.inl b/ace/OS_NS_netdb.inl
index 99c4745464c..ddf02cd5803 100644
--- a/ace/OS_NS_netdb.inl
+++ b/ace/OS_NS_netdb.inl
@@ -7,7 +7,7 @@
#include "ace/OS_NS_errno.h"
#if defined (ACE_LACKS_NETDB_REENTRANT_FUNCTIONS)
-# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0)
+# if defined (ACE_MT_SAFE) && (ACE_MT_SAFE != 0) && !defined (HPUX_11)
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \
do \
{ \
@@ -25,7 +25,7 @@
return ace_result_; \
} \
} while(0)
-# else /* ! (ACE_MT_SAFE && ACE_MT_SAFE != 0) */
+# else /* ! (ACE_MT_SAFE && ACE_MT_SAFE != 0 && !HPUX_11) */
# define ACE_NETDBCALL_RETURN(OP,TYPE,FAILVALUE,TARGET,SIZE) \
do \
{ \
diff --git a/ace/config-hpux-11.00.h b/ace/config-hpux-11.00.h
index a3c8fd48b4b..48773b21281 100644
--- a/ace/config-hpux-11.00.h
+++ b/ace/config-hpux-11.00.h
@@ -247,10 +247,9 @@
// HP-UX 11 has reentrant netdb functions. The catch is that the old
// functions (gethostbyname, etc.) are thread-safe and the _r versions are
-// not used and will be removed at some point. So, define things so
-// the _r versions are not used. This will slow things down a bit due to
-// the extra mutex lock in the ACE_NETDBCALL_RETURN macro, and will be fixed
-// in the future (problem ID P64).
+// obsolescent. So, define things so the _r versions are not used.
+// OS_NS_netdb.inl ensures no funny lock games are played in the
+// ACE_NETDBCALL_RETURN macro.
#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
/* Platform lacks pri_t (e.g., Tandem NonStop UNIX). */