apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r784520 - /apr/apr/trunk/util-misc/apr_queue.c
Date Sun, 14 Jun 2009 07:42:38 GMT
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 <nrc cs.berkeley.edu>.

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)
 {



Mime
View raw message