summaryrefslogtreecommitdiff
path: root/ace/config-linux-lxpthreads.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-19 16:38:34 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-19 16:38:34 +0000
commit2059e430352de58e79145261e569b791649d2656 (patch)
tree09610f3d3ec03e238b30ea23ec9a224d35ace72d /ace/config-linux-lxpthreads.h
parentcd80ff84f41f5b227c7881301c652d55d854cc7a (diff)
downloadATCD-2059e430352de58e79145261e569b791649d2656.tar.gz
with ACE_HAS_TSS_EMULATION, #define ACE_FINI_HOOK to insert a
one-second sleep at program termination. It's necessary to avoid occasional segfaults of unknown origin, but they appear to be in the LinuxThreads library.
Diffstat (limited to 'ace/config-linux-lxpthreads.h')
-rw-r--r--ace/config-linux-lxpthreads.h46
1 files changed, 27 insertions, 19 deletions
diff --git a/ace/config-linux-lxpthreads.h b/ace/config-linux-lxpthreads.h
index 65e64591628..f948054cdd2 100644
--- a/ace/config-linux-lxpthreads.h
+++ b/ace/config-linux-lxpthreads.h
@@ -12,18 +12,18 @@
the tarball of 0.5 can be found, but I suspect that
Xavier's site has it...
- * RPM == Redhat Package Management
+ * RPM == Redhat Package Management
- My system is a Caldera-based distribution with many upgraded
- packages. If you don't use RPM, there is a program (rpm2cpio)
- which will extract the files for "normal consumption".
+ My system is a Caldera-based distribution with many upgraded
+ packages. If you don't use RPM, there is a program (rpm2cpio)
+ which will extract the files for "normal consumption".
- You may also want to check out the "ACE On Linux" pages at:
+ You may also want to check out the "ACE On Linux" pages at:
- http://users.deltanet.com/users/slg/ACE/
+ http://users.deltanet.com/users/slg/ACE/
- (They were a little out of date when I last was there
- however.) */
+ (They were a little out of date when I last was there
+ however.) */
#ifndef ACE_CONFIG_H
#define ACE_CONFIG_H
@@ -38,26 +38,26 @@
// And they're even POSIX pthreads (MIT implementation)
#define ACE_HAS_PTHREADS
// ... and the final standard even!
-#define ACE_HAS_PTHREADS_STD
+#define ACE_HAS_PTHREADS_STD
-#define ACE_HAS_PTHREAD_SIGMASK // JCEJ 12/19/96
+#define ACE_HAS_PTHREAD_SIGMASK // JCEJ 12/19/96
#if !defined (ACE_MT_SAFE)
- #define ACE_MT_SAFE 1 // JCEJ 12/22/96 #1
+ #define ACE_MT_SAFE 1 // JCEJ 12/22/96 #1
#endif
-#define ACE_HAS_THREAD_SPECIFIC_STORAGE // jcej 12/22/96 #2
-#define PTHREAD_MIN_PRIORITY 0 // JCEJ 12/22/96 #3
+#define ACE_HAS_THREAD_SPECIFIC_STORAGE // jcej 12/22/96 #2
+#define PTHREAD_MIN_PRIORITY 0 // JCEJ 12/22/96 #3
#if defined(ACE_HAS_PTHREAD_SIGMASK)
-# define PTHREAD_MAX_PRIORITY 99 // CJC 02/11/97
+# define PTHREAD_MAX_PRIORITY 99 // CJC 02/11/97
#else
-# define PTHREAD_MAX_PRIORITY 32 // JCEJ 12/22/96 #3
+# define PTHREAD_MAX_PRIORITY 32 // JCEJ 12/22/96 #3
#endif
-#define ACE_LACKS_THREAD_STACK_ADDR // JCEJ 12/17/96
-#define ACE_LACKS_THREAD_STACK_SIZE // JCEJ 12/17/96
+#define ACE_LACKS_THREAD_STACK_ADDR // JCEJ 12/17/96
+#define ACE_LACKS_THREAD_STACK_SIZE // JCEJ 12/17/96
-#define ACE_LACKS_RWLOCK_T // JCEJ 12/23/96 #1
-#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS // JCEJ 1/7-8/96
+#define ACE_LACKS_RWLOCK_T // JCEJ 12/23/96 #1
+#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS // JCEJ 1/7-8/96
#define ACE_HAS_SIGWAIT
@@ -73,4 +73,12 @@
#include /**/ <pthread.h>
+#if defined (ACE_HAS_TSS_EMULATION)
+ // This seems necessary to avoid an occasional seg fault at the end
+ // of some threaded tests, only with ACE_HAS_TSS_EMULATION. It
+ // appears to be problem in the LinuxThreads library, especially if
+ // a sleep solves it.
+# define ACE_FINI_HOOK ACE_OS::sleep (1)
+#endif /* ACE_HAS_TSS_EMULATION */
+
#endif /* ACE_CONFIG_H */