]> granicus.if.org Git - apache/commitdiff
Special Support for User-Space Threading Environments
authorRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:49:14 +0000 (16:49 +0000)
committerRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:49:14 +0000 (16:49 +0000)
Submitted by: Ralf S. Engelschall

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83783 13f79535-47bb-0310-9956-ffa450edef68

include/ap_config.h

index e7219cf892e76ac1e30e5109e6b4db3608792084..f719bfb2efa0cd5788e958a2785b24ab3dd5ab5f 100644 (file)
@@ -1387,6 +1387,31 @@ extern double difftime(time_t time1, time_t time0);
 #define ap_wait_t int
 #endif
 
+/*
+ * Special Support for User-Space Threading Environments [rse, 12-Aug-1999]
+ */
+
+/* optionally make sure the Pthread environment is available in _EVERY_ source 
+   by including the Pthread header already in this header file. This is
+   important for portable user-space threading environments which can only use
+   soft syscall wrapping (i.e. ``#define read _pthread_read'', etc.) */
+#ifdef PTHREAD_EVERYWHERE
+#include <pthread.h>
+#endif
+
+/* support for forcing no serialized accept situation. This has to be
+   used by user-space threading environments, because mostly all (except for
+   USE_PTHREAD_SERIALIZED_ACCEPT, but this only works on a few platforms)
+   variants of the inter-process accept lock would suspend the whole process
+   and not just the acceptor thread. */
+#ifdef NO_SERIALIZED_ACCEPT
+#undef USE_FCNTL_SERIALIZED_ACCEPT
+#undef USE_FLOCK_SERIALIZED_ACCEPT
+#undef USE_USLOCK_SERIALIZED_ACCEPT
+#undef USE_SYSVSEM_SERIALIZED_ACCEPT
+#undef USE_PTHREAD_SERIALIZED_ACCEPT
+#endif
+
 #ifdef __cplusplus
 }
 #endif