From e7fd96857efc51af0e214e87b60357ee597a5c14 Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Thu, 26 Aug 1999 16:49:14 +0000 Subject: [PATCH] Special Support for User-Space Threading Environments 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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/ap_config.h b/include/ap_config.h index e7219cf892..f719bfb2ef 100644 --- a/include/ap_config.h +++ b/include/ap_config.h @@ -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 +#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 -- 2.40.0