Commit 0da4847e authored by Ryan Bloom's avatar Ryan Bloom
Browse files

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
parent baaa2edb
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
@@ -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.