From: Ryan Bloom Date: Mon, 27 Aug 2001 23:50:12 +0000 (+0000) Subject: Remove an obsolete function from fdqueue. The worker MPM now uses the X-Git-Tag: 2.0.25~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cdf95d3747f6a8c70530300ffe1ddeb2f2ca431;p=apache Remove an obsolete function from fdqueue. The worker MPM now uses the fdqueue functions in a different way. Submitted by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90749 13f79535-47bb-0310-9956-ffa450edef68 --- 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.