You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2009/06/14 09:40:23 UTC

svn commit: r784519 - /apr/apr-util/trunk/misc/apr_queue.c

Author: bojan
Date: Sun Jun 14 07:40:22 2009
New Revision: 784519

URL: http://svn.apache.org/viewvc?rev=784519&view=rev
Log:
apr_queue_trypush() doesn't block if the queue is full.
Patch by Neil Conway <nrc cs.berkeley.edu>.

Modified:
    apr/apr-util/trunk/misc/apr_queue.c

Modified: apr/apr-util/trunk/misc/apr_queue.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_queue.c?rev=784519&r1=784518&r2=784519&view=diff
==============================================================================
--- apr/apr-util/trunk/misc/apr_queue.c (original)
+++ apr/apr-util/trunk/misc/apr_queue.c Sun Jun 14 07:40:22 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)
 {



Re: svn commit: r784519 - /apr/apr-util/trunk/misc/apr_queue.c

Posted by Bojan Smojver <bo...@rexursive.com>.
On Sun, 2009-06-14 at 07:40 +0000, bojan@apache.org wrote:
> Modified: apr/apr-util/trunk/misc/apr_queue.c

Sorry guys :-( Old habits die hard.

-- 
Bojan