You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rs...@hyperreal.org on 1999/08/12 10:11:45 UTC
cvs commit: apache-2.0/mpm/src/include ap_config.h
rse 99/08/12 01:11:45
Modified: mpm/src/include ap_config.h
Log:
Add Apache/pthread's support for -DNO_SERIALIZED_ACCEPT and
-DPTHREAD_EVERYWHERE also to Apache/mpm.
Revision Changes Path
1.5 +25 -0 apache-2.0/mpm/src/include/ap_config.h
Index: ap_config.h
===================================================================
RCS file: /home/cvs/apache-2.0/mpm/src/include/ap_config.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ap_config.h 1999/08/06 00:54:16 1.4
+++ ap_config.h 1999/08/12 08:11:44 1.5
@@ -1372,6 +1372,31 @@
#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