You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2001/08/28 01:50:12 UTC
cvs commit: httpd-2.0/server/mpm/worker fdqueue.c
rbb 01/08/27 16:50:12
Modified: server/mpm/worker fdqueue.c
Log:
Remove an obsolete function from fdqueue. The worker MPM now uses the
fdqueue functions in a different way.
Submitted by: Aaron Bannert <aa...@clove.org>
Revision Changes Path
1.5 +0 -19 httpd-2.0/server/mpm/worker/fdqueue.c
Index: fdqueue.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/mpm/worker/fdqueue.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- fdqueue.c 2001/08/24 16:49:39 1.4
+++ fdqueue.c 2001/08/27 23:50:12 1.5
@@ -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.