summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-08-28 01:50:12 +0200
committerRyan Bloom <rbb@apache.org>2001-08-28 01:50:12 +0200
commit0cdf95d3747f6a8c70530300ffe1ddeb2f2ca431 (patch)
tree076df5ccade7663e6bfb29c90cd7e34c709bb3ec
parentAs the worker MPM is really an alternative to the threaded MPM ... (diff)
downloadapache2-0cdf95d3747f6a8c70530300ffe1ddeb2f2ca431.tar.xz
apache2-0cdf95d3747f6a8c70530300ffe1ddeb2f2ca431.zip
Remove an obsolete function from fdqueue. The worker MPM now uses the
fdqueue functions in a different way. Submitted by: Aaron Bannert <aaron@clove.org> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90749 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--server/mpm/worker/fdqueue.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/server/mpm/worker/fdqueue.c b/server/mpm/worker/fdqueue.c
index 8f6fe86d65..dc5148fc11 100644
--- a/server/mpm/worker/fdqueue.c
+++ b/server/mpm/worker/fdqueue.c
@@ -58,25 +58,6 @@
#include "fdqueue.h"
-/* Assumption: increment and decrement are atomic on int */
-
-/**
- * Threadsafe way to increment the number of empty slots ("blanks")
- * in the resource queue.
- */
-int ap_increase_blanks(fd_queue_t *queue)
-{
- if (pthread_mutex_lock(&queue->one_big_mutex) != 0) {
- return FD_QUEUE_FAILURE;
- }
- queue->blanks++;
- if (pthread_mutex_unlock(&queue->one_big_mutex) != 0) {
- return FD_QUEUE_FAILURE;
- }
-
- return FD_QUEUE_SUCCESS;
-}
-
/**
* Detects when the fd_queue_t is full. This utility function is expected
* to be called from within critical sections, and is not threadsafe.