You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2004/02/12 17:45:07 UTC
cvs commit: xml-xalan/c/samples/ThreadSafe ThreadSafe.cpp
dbertoni 2004/02/12 08:45:07
Modified: c/samples/ThreadSafe ThreadSafe.cpp
Log:
Modified sample so it builds on Tru64.
Revision Changes Path
1.27 +16 -2 xml-xalan/c/samples/ThreadSafe/ThreadSafe.cpp
Index: ThreadSafe.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/samples/ThreadSafe/ThreadSafe.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ThreadSafe.cpp 7 Jan 2004 05:32:08 -0000 1.26
+++ ThreadSafe.cpp 12 Feb 2004 16:45:06 -0000 1.27
@@ -93,13 +93,27 @@
//This is here for Unix threads
#elif defined(XALAN_POSIX2_AVAILABLE)
+
+ // This is a workaround for a Tru64 compiler bug...
+#if defined(TRU64)
+#if defined(XALAN_STRICT_ANSI_HEADERS)
+#include <csetjmp>
+typedef long sigjmp_buf[_JBLEN];
+#endif
+extern "C" void *theThread(void *param);
+#endif
+
#include <pthread.h>
#include <unistd.h>
- typedef unsigned long theThreadIDType;
- typedef pthread_t theThreadType;
+ typedef pthread_t theThreadIDType;
+ typedef pthread_t theThreadType;
#else
//error Unsupported Platform!
+#endif
+
+#if defined(XALAN_STRICT_ANSI_HEADERS)
+ using std::perror;
#endif
#define NUM_THREADS 10
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org