summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2004-09-29 18:02:08 +0000
committergregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2004-09-29 18:02:08 +0000
commit8fe9a7d1079f2b243be1a702a06662346dd5717f (patch)
tree06d5fcb12c4e182a0c1ee8b0be2e203830317e17
parentdd2e537696710e65647d05a53b227cf195aa3b58 (diff)
downloadlibapr-util-8fe9a7d1079f2b243be1a702a06662346dd5717f.tar.gz
apr_queue_trypop: fix inaccurate comments
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@59146 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--misc/apr_queue.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc/apr_queue.c b/misc/apr_queue.c
index 89e190c0..6e47ec23 100644
--- a/misc/apr_queue.c
+++ b/misc/apr_queue.c
@@ -309,9 +309,8 @@ APU_DECLARE(apr_status_t) apr_queue_pop(apr_queue_t *queue, void **data)
/**
* 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 @@ APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data)
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;