diff options
author | Steve Huston <shuston@riverace.com> | 2012-11-20 23:51:08 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2012-11-20 23:51:08 +0000 |
commit | c7be43e09598ee391105124f1d4105aaa7662d84 (patch) | |
tree | 926f7e14c89f06a35213e4a2fc62b2e37d8d3bb1 | |
parent | d427818ebb4c5a6d5cb117adea5133fc69d4ec86 (diff) | |
download | ATCD-c7be43e09598ee391105124f1d4105aaa7662d84.tar.gz |
ChangeLogTag:Tue Nov 20 23:55:57 UTC 2012 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ace/OS_NS_netdb.inl | 4 | ||||
-rw-r--r-- | ace/config-hpux-11.00.h | 7 |
3 files changed, 12 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog index 91c9d7572b8..5418db15717 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 f86db157149..655dc332791 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 ebdcb51f9d5..3c51ea86655 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). */ |