Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 76291 invoked from network); 14 Jun 2009 07:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jun 2009 07:42:58 -0000 Received: (qmail 65270 invoked by uid 500); 14 Jun 2009 07:43:09 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 65178 invoked by uid 500); 14 Jun 2009 07:43:09 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 65169 invoked by uid 99); 14 Jun 2009 07:43:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 07:43:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 07:42:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 20C982388897; Sun, 14 Jun 2009 07:42:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r784520 - /apr/apr/trunk/util-misc/apr_queue.c Date: Sun, 14 Jun 2009 07:42:38 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090614074238.20C982388897@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bojan Date: Sun Jun 14 07:42:37 2009 New Revision: 784520 URL: http://svn.apache.org/viewvc?rev=784520&view=rev Log: apr_queue_trypush() doesn't block if the queue is full. Patch by Neil Conway . Modified: apr/apr/trunk/util-misc/apr_queue.c Modified: apr/apr/trunk/util-misc/apr_queue.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/util-misc/apr_queue.c?rev=784520&r1=784519&r2=784520&view=diff ============================================================================== --- apr/apr/trunk/util-misc/apr_queue.c (original) +++ apr/apr/trunk/util-misc/apr_queue.c Sun Jun 14 07:42:37 2009 @@ -202,9 +202,9 @@ } /** - * Push new data onto the queue. Blocks if the queue is full. Once - * the push operation has completed, it signals other threads waiting - * in apr_queue_pop() that they may continue consuming sockets. + * Push new data onto the queue. If the queue is full, return APR_EAGAIN. If + * the push operation completes successfully, it signals other threads + * waiting in apr_queue_pop() that they may continue consuming sockets. */ APU_DECLARE(apr_status_t) apr_queue_trypush(apr_queue_t *queue, void *data) {