]> granicus.if.org Git - apache/commitdiff
Remove an obsolete function from fdqueue. The worker MPM now uses the
authorRyan Bloom <rbb@apache.org>
Mon, 27 Aug 2001 23:50:12 +0000 (23:50 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 27 Aug 2001 23:50:12 +0000 (23:50 +0000)
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

server/mpm/worker/fdqueue.c

index 8f6fe86d657d4c61dfe04adc9c9d021ebe8fb49e..dc5148fc115d5b8130ad19c01f7adceb58a234dc 100644 (file)
 
 #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.