diff options
author | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-14 07:40:22 +0000 |
---|---|---|
committer | bojan <bojan@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-14 07:40:22 +0000 |
commit | 85178561deb9056145da76bf973f735dcab63465 (patch) | |
tree | 1c9f2304471291ec903ed448fa0d2586029af68e | |
parent | 56fb55efd476952ea766f917c63c5a301425b600 (diff) | |
download | libapr-util-85178561deb9056145da76bf973f735dcab63465.tar.gz |
apr_queue_trypush() doesn't block if the queue is full.
Patch by Neil Conway <nrc cs.berkeley.edu>.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@784519 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | misc/apr_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/apr_queue.c b/misc/apr_queue.c index 8636a824..b74fdf85 100644 --- a/misc/apr_queue.c +++ b/misc/apr_queue.c @@ -202,9 +202,9 @@ APU_DECLARE(apr_status_t) apr_queue_push(apr_queue_t *queue, void *data) } /** - * 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) { |