httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject [PATCH] remove obsolete function related to worker MPM
Date Mon, 27 Aug 2001 23:45:41 GMT
The worker MPM uses the fdqueue in a different way now, so this
function is no longer used nor needed.

-aaron


Index: fdqueue.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/server/mpm/worker/fdqueue.c,v
retrieving revision 1.4
diff -u -r1.4 fdqueue.c
--- fdqueue.c	2001/08/24 16:49:39	1.4
+++ fdqueue.c	2001/08/27 23:36:44
@@ -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.


Mime
View raw message