summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-03-22 11:36:52 +0000
committerJeff Trawick <trawick@apache.org>2000-03-22 11:36:52 +0000
commit914b0b7077ac2ae965d20953628de7d7c57c6ec5 (patch)
tree785b656ef2dd9202960bb15958934e9d7b8a7aec
parent61ae47aed8735fcc0f40752778dfafb293b7c7f7 (diff)
downloadhttpd-914b0b7077ac2ae965d20953628de7d7c57c6ec5.tar.gz
axe some deprecated MULTITHREAD code
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84825 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--os/win32/os.h1
-rw-r--r--server/mpm/mpmt_pthread/scoreboard.c34
2 files changed, 0 insertions, 35 deletions
diff --git a/os/win32/os.h b/os/win32/os.h
index 6f67a0e08e..abd98ae8a8 100644
--- a/os/win32/os.h
+++ b/os/win32/os.h
@@ -101,7 +101,6 @@
#define USE_LONGJMP
#define HAVE_MMAP
#define USE_MMAP_SCOREBOARD
-#define MULTITHREAD
#define HAVE_CANONICAL_FILENAME
#define HAVE_DRIVE_LETTERS
#define HAVE_SENDFILE
diff --git a/server/mpm/mpmt_pthread/scoreboard.c b/server/mpm/mpmt_pthread/scoreboard.c
index 8a2e1f833c..31430cb7b9 100644
--- a/server/mpm/mpmt_pthread/scoreboard.c
+++ b/server/mpm/mpmt_pthread/scoreboard.c
@@ -22,38 +22,6 @@ API_VAR_IMPORT char *ap_scoreboard_fname;
* We begin with routines which deal with the file itself...
*/
-#ifdef MULTITHREAD
-/*
- * In the multithreaded mode, have multiple threads - not multiple
- * processes that need to talk to each other. Just use a simple
- * malloc. But let the routines that follow, think that you have
- * shared memory (so they use memcpy etc.)
- */
-
-void reinit_scoreboard(ap_context_t *p)
-{
- ap_assert(!ap_scoreboard_image);
- ap_scoreboard_image = (scoreboard *) malloc(SCOREBOARD_SIZE);
- if (ap_scoreboard_image == NULL) {
- ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
- "Ouch! Out of memory reiniting scoreboard!");
- }
- memset(ap_scoreboard_image, 0, SCOREBOARD_SIZE);
-}
-
-void cleanup_scoreboard(void)
-{
- ap_assert(ap_scoreboard_image);
- free(ap_scoreboard_image);
- ap_scoreboard_image = NULL;
-}
-
-API_EXPORT(void) ap_sync_scoreboard_image(void)
-{
-}
-
-
-#else /* MULTITHREAD */
#if APR_HAS_SHARED_MEMORY
#include "apr_shmem.h"
@@ -123,8 +91,6 @@ ap_inline void ap_sync_scoreboard_image(void)
{
}
-#endif /* MULTITHREAD */
-
API_EXPORT(int) ap_exists_scoreboard_image(void)
{
return (ap_scoreboard_image ? 1 : 0);