diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-18 18:30:35 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-05-18 18:30:35 +0000 |
commit | 5961624594ccce3bbc8db8a1cacdad8157ee12de (patch) | |
tree | 755513dadf431c2ffb488e3d516b9af4efcaf797 | |
parent | 78fa6ff82482d86ee7b6826224c30d0233c4603a (diff) | |
download | ATCD-5961624594ccce3bbc8db8a1cacdad8157ee12de.tar.gz |
*** empty log message ***
-rw-r--r-- | ace/OS.i | 12 | ||||
-rw-r--r-- | ace/README | 1 | ||||
-rw-r--r-- | ace/config-aix-4.1.x.h | 5 | ||||
-rw-r--r-- | ace/config-aix-4.2.x.h | 5 | ||||
-rw-r--r-- | ace/config-dgux-4.11-epc.h | 3 | ||||
-rw-r--r-- | ace/config-freebsd-pthread.h | 6 | ||||
-rw-r--r-- | ace/config-linux-lxpthreads.h | 5 | ||||
-rw-r--r-- | ace/config-linux-pthread.h | 5 | ||||
-rw-r--r-- | ace/config-lynxos.h | 4 | ||||
-rw-r--r-- | ace/config-mit-pthread.h | 5 | ||||
-rw-r--r-- | ace/config-mvs.h | 5 | ||||
-rw-r--r-- | ace/config-osf1-3.2.h | 6 | ||||
-rw-r--r-- | ace/config-osf1-4.0.h | 4 | ||||
-rw-r--r-- | ace/config-sco-5.0.0-mit-pthread.h | 5 | ||||
-rw-r--r-- | ace/config-sunos5.5-g++.h | 5 | ||||
-rw-r--r-- | ace/config-sunos5.5-sunc++-4.x.h | 5 |
16 files changed, 64 insertions, 17 deletions
@@ -1533,6 +1533,9 @@ ACE_OS::mutex_init (ACE_mutex_t *m, && ACE_ADAPT_RETVAL(::pthread_mutex_init (m, &attributes), result)== 0) #else if (::pthread_mutexattr_init (&attributes) == 0 +#if !defined (ACE_LACKS_MUTEXATTR_PSHARED) + && ::pthread_mutexattr_setpshared (&attributes, type) == 0 +#endif /* ACE_LACKS_MUTEXATTR_PSHARED */ #if defined (ACE_HAS_PTHREAD_MUTEXATTR_SETKIND_NP) && ::pthread_mutexattr_setkind_np (&attributes, type) == 0 #endif /* ACE_HAS_PTHREAD_MUTEXATTR_SETKIND_NP */ @@ -2029,15 +2032,14 @@ ACE_OS::cond_init (ACE_cond_t *cv, int type, LPCTSTR name, void *arg) && ACE_ADAPT_RETVAL(::pthread_cond_init (cv, &attributes), result) == 0 #else if (::pthread_condattr_init (&attributes) == 0 - && ::pthread_cond_init (cv, &attributes) == 0 +#if !defined (ACE_LACKS_CONDATTR_PSHARED) + && ::pthread_condattr_setpshared (&attributes, type) == 0 +#endif /* ACE_LACKS_CONDATTR_PSHARED */ # if defined (ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP) && ::pthread_condattr_setkind_np (&attributes, type) == 0 # endif /* ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP */ + && ::pthread_cond_init (cv, &attributes) == 0 #endif /* ACE_HAS_DCETHREADS */ -#if !defined (ACE_LACKS_CONDATTR_PSHARED) - && ACE_ADAPT_RETVAL(::pthread_condattr_setpshared (&attributes, type), - result) == 0 -#endif /* ACE_LACKS_CONDATTR_PSHARED */ ) result = 0; else diff --git a/ace/README b/ace/README index 2f07cd9016d..af30ae34c22 100644 --- a/ace/README +++ b/ace/README @@ -247,6 +247,7 @@ ACE_LACKS_MODE_MASKS Platform/compiler doesn't have open() mo ACE_LACKS_MPROTECT The platform doesn't have mprotect(2) (e.g., EPLX real time OS from CDC (based on LYNX)) ACE_LACKS_MSGBUF_T Platform lacks struct msgbuf (e.g., NT and MSV). ACE_LACKS_MSYNC Platform lacks msync() (e.g., Linux) +ACE_LACKS_MUTEXATTR_PSHARED Platform lacks pthread_mutexattr_setpshared(). ACE_LACKS_NETDB_REENTRANT_FUNCTIONS Platform does not support reentrant netdb functions (getprotobyname_r, getprotobynumber_r, gethostbyaddr_r, gethostbyname_r, getservbyname_r). diff --git a/ace/config-aix-4.1.x.h b/ace/config-aix-4.1.x.h index 442141ea0fc..c5445458dce 100644 --- a/ace/config-aix-4.1.x.h +++ b/ace/config-aix-4.1.x.h @@ -32,7 +32,10 @@ #define ACE_LACKS_TCP_H #define ACE_LACKS_THREAD_PROCESS_SCOPING #define ACE_LACKS_THREAD_STACK_ADDR -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_HAS_SIN_LEN #define ACE_HAS_SYSV_IPC #define ACE_HAS_STRUCT_NETDB_DATA diff --git a/ace/config-aix-4.2.x.h b/ace/config-aix-4.2.x.h index a4af061b208..2e2757957eb 100644 --- a/ace/config-aix-4.2.x.h +++ b/ace/config-aix-4.2.x.h @@ -157,7 +157,10 @@ // needed. However, if someone comes across a need for it, here it is. //#define ACE_HAS_THREAD_SELF -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_LACKS_RWLOCK_T #define ACE_LACKS_SETSCHED #define ACE_LACKS_THREAD_PROCESS_SCOPING diff --git a/ace/config-dgux-4.11-epc.h b/ace/config-dgux-4.11-epc.h index 5f65e08d335..445cd81f3f3 100644 --- a/ace/config-dgux-4.11-epc.h +++ b/ace/config-dgux-4.11-epc.h @@ -133,7 +133,10 @@ // #define ACE_HAS_STHREADS // #define ACE_HAS_PTHREADS #define ACE_HAS_SIGWAIT +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. // #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // Compiler/platform has thread-specific storage // diff --git a/ace/config-freebsd-pthread.h b/ace/config-freebsd-pthread.h index cdd4fc3a85c..cd8cd80bb06 100644 --- a/ace/config-freebsd-pthread.h +++ b/ace/config-freebsd-pthread.h @@ -143,8 +143,10 @@ enum schedparam_policy { #define ACE_LACKS_SETSCHED #define ACE_LACKS_THREAD_PROCESS_SCOPING #define ACE_LACKS_PTHREAD_THR_SIGSETMASK -#define ACE_LACKS_CONDATTR_PSHARED -// this one is in doubt +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_HAS_THREAD_SPECIFIC_STORAGE // #define ACE_HAS_SIGWAIT diff --git a/ace/config-linux-lxpthreads.h b/ace/config-linux-lxpthreads.h index f8dba7f9654..b6434d14dd7 100644 --- a/ace/config-linux-lxpthreads.h +++ b/ace/config-linux-lxpthreads.h @@ -59,7 +59,10 @@ #define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS // JCEJ 1/7-8/96 #define ACE_HAS_SIGWAIT -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #if defined(__GLIBC__) // Platform supports reentrant functions (i.e., all the POSIX *_r diff --git a/ace/config-linux-pthread.h b/ace/config-linux-pthread.h index 2a52b61cb0d..833d595a9f9 100644 --- a/ace/config-linux-pthread.h +++ b/ace/config-linux-pthread.h @@ -19,6 +19,11 @@ #define ACE_LACKS_RWLOCK_T #define ACE_HAS_SIGWAIT #define ACE_LACKS_CONDATTR_PSHARED +#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // To use pthreads on Linux you'll need to use the MIT version, for // now... diff --git a/ace/config-lynxos.h b/ace/config-lynxos.h index 8acd58583de..44879074696 100644 --- a/ace/config-lynxos.h +++ b/ace/config-lynxos.h @@ -156,6 +156,10 @@ #define ACE_HAS_SIGWAIT #define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // Turns off the tracing feature. #if !defined (ACE_NTRACE) diff --git a/ace/config-mit-pthread.h b/ace/config-mit-pthread.h index d88d4495399..fca68d1571a 100644 --- a/ace/config-mit-pthread.h +++ b/ace/config-mit-pthread.h @@ -30,7 +30,10 @@ #define ACE_LACKS_THREAD_PROCESS_SCOPING //#define ACE_LACKS_THREAD_STACK_ADDR //#define ACE_LACKS_KEYDELETE -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_LACKS_RWLOCK_T #define ACE_LACKS_SETSCHED diff --git a/ace/config-mvs.h b/ace/config-mvs.h index 3f219050613..a2783658710 100644 --- a/ace/config-mvs.h +++ b/ace/config-mvs.h @@ -76,7 +76,10 @@ #define ACE_HAS_VOIDPTR_SOCKOPT #define ACE_HAS_XPG4_MULTIBYTE_CHAR #define ACE_HAS_YIELD_VOID_PTR -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_LACKS_IOSTREAM_FX #define ACE_LACKS_KEYDELETE #define ACE_LACKS_LINEBUFFERED_STREAMBUF diff --git a/ace/config-osf1-3.2.h b/ace/config-osf1-3.2.h index 070df041a4a..d03e77e5e31 100644 --- a/ace/config-osf1-3.2.h +++ b/ace/config-osf1-3.2.h @@ -41,8 +41,10 @@ #define ACE_HAS_TID_T #define ACE_HAS_UALARM -// Platform lacks support for shared condition variables -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // Platform lacks support for stack address information #define ACE_LACKS_THREAD_STACK_ADDR diff --git a/ace/config-osf1-4.0.h b/ace/config-osf1-4.0.h index 5c08374f1a2..85364520499 100644 --- a/ace/config-osf1-4.0.h +++ b/ace/config-osf1-4.0.h @@ -152,6 +152,10 @@ #define ACE_HAS_UALARM #define ACE_HAS_UCONTEXT_T #define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_LACKS_PRI_T #define ACE_LACKS_RWLOCK_T #define ACE_LACKS_THREAD_PROCESS_SCOPING diff --git a/ace/config-sco-5.0.0-mit-pthread.h b/ace/config-sco-5.0.0-mit-pthread.h index d6f2dd8f94a..cd80d9a7da3 100644 --- a/ace/config-sco-5.0.0-mit-pthread.h +++ b/ace/config-sco-5.0.0-mit-pthread.h @@ -156,7 +156,10 @@ #define ACE_LACKS_THREAD_PROCESS_SCOPING //#define ACE_LACKS_THREAD_STACK_ADDR //#define ACE_LACKS_KEYDELETE -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED #define ACE_LACKS_RWLOCK_T #define ACE_LACKS_SETSCHED #define ACE_LACKS_RPC_H diff --git a/ace/config-sunos5.5-g++.h b/ace/config-sunos5.5-g++.h index d7b701801f7..d0b6a1e29df 100644 --- a/ace/config-sunos5.5-g++.h +++ b/ace/config-sunos5.5-g++.h @@ -173,7 +173,10 @@ #define ACE_NEEDS_LWP_PRIO_SET #define ACE_HAS_SIGWAIT -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // Platform supports TLI timod STREAMS module. #define ACE_HAS_TIMOD_H diff --git a/ace/config-sunos5.5-sunc++-4.x.h b/ace/config-sunos5.5-sunc++-4.x.h index f35a750ae92..a88d9609d6c 100644 --- a/ace/config-sunos5.5-sunc++-4.x.h +++ b/ace/config-sunos5.5-sunc++-4.x.h @@ -180,7 +180,10 @@ // . . . but only supports SCHED_OTHER scheduling policy #define ACE_HAS_ONLY_SCHED_OTHER #define ACE_HAS_SIGWAIT -#define ACE_LACKS_CONDATTR_PSHARED +// If ACE doesn't compile due to the lack of these methods, please +// send email to schmidt@cs.wustl.edu reporting this. +// #define ACE_LACKS_CONDATTR_PSHARED +// #define ACE_LACKS_MUTEXATTR_PSHARED // Compiler/platform has thread-specific storage #define ACE_HAS_THREAD_SPECIFIC_STORAGE |