You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gr...@apache.org on 2004/09/29 20:02:08 UTC
cvs commit: apr-util/misc apr_queue.c
gregames 2004/09/29 11:02:08
Modified: misc apr_queue.c
Log:
apr_queue_trypop: fix inaccurate comments
Revision Changes Path
1.14 +2 -4 apr-util/misc/apr_queue.c
Index: apr_queue.c
===================================================================
RCS file: /home/cvs/apr-util/misc/apr_queue.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -b -u -r1.13 -r1.14
--- apr_queue.c 13 Feb 2004 09:55:26 -0000 1.13
+++ apr_queue.c 29 Sep 2004 18:02:08 -0000 1.14
@@ -309,9 +309,8 @@
/**
* Retrieves the next item from the queue. If there are no
- * items available, it will block until one becomes available.
- * Once retrieved, the item is placed into the address specified by
- * 'data'.
+ * items available, return APR_EAGAIN. Once retrieved,
+ * the item is placed into the address specified by 'data'.
*/
APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data)
{
@@ -326,7 +325,6 @@
return rv;
}
- /* Keep waiting until we wake up and find that the queue is not empty. */
if (apr_queue_empty(queue)) {
rv = apr_thread_mutex_unlock(queue->one_big_mutex);
return APR_EAGAIN;