summaryrefslogtreecommitdiff
path: root/ace/config-hpux11.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1998-08-18 19:17:15 +0000
committerSteve Huston <shuston@riverace.com>1998-08-18 19:17:15 +0000
commit7b6385858bffed1e433e408e1b1717574d28fcf7 (patch)
treee4978a0af816c219f7d661e32a12839791f03b8a /ace/config-hpux11.h
parent8b9f58e7f8cbd7d6d97f36065ac950701b88199f (diff)
downloadATCD-7b6385858bffed1e433e408e1b1717574d28fcf7.tar.gz
Switch support for threads on and off based on ACE_HAS_THREADS def set in
platform macros file.
Diffstat (limited to 'ace/config-hpux11.h')
-rw-r--r--ace/config-hpux11.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/ace/config-hpux11.h b/ace/config-hpux11.h
index e95f26d481d..e4dcf36baaf 100644
--- a/ace/config-hpux11.h
+++ b/ace/config-hpux11.h
@@ -192,23 +192,29 @@
//
// Threads information.
//
+// Use of threads is controlled by the 'threads' argument to make. See
+// include/makeinclude/platform_hpux_aCC.GNU for details.
+//
////////////////////////////////////////////////////////////////////////
-#if !defined (ACE_MT_SAFE)
-# define ACE_MT_SAFE 1
-#endif
+#if defined (ACE_HAS_THREADS)
-#define ACE_HAS_THREADS
-#define ACE_HAS_PTHREADS
-#define ACE_HAS_PTHREADS_STD
-#define ACE_HAS_POSIX_SEM
-#define ACE_HAS_PTHREAD_T
-#define ACE_HAS_PTHREAD_EQUAL
+# if !defined (ACE_MT_SAFE)
+# define ACE_MT_SAFE 1
+# endif
-#define ACE_HAS_THREAD_SPECIFIC_STORAGE
+# define ACE_HAS_PTHREADS
+# define ACE_HAS_PTHREADS_STD
+# define ACE_HAS_PTHREAD_T
+# define ACE_HAS_PTHREAD_EQUAL
+
+# define ACE_HAS_THREAD_SPECIFIC_STORAGE
// Platform has pthread_sigmask defined
-#define ACE_HAS_PTHREAD_SIGMASK
+# define ACE_HAS_PTHREAD_SIGMASK
+#endif /* ACE_HAS_THREADS */
+
+#define ACE_HAS_POSIX_SEM
// Turns off the tracing feature.
// To build with tracing enabled, make sure ACE_NTRACE is not defined