diff options
author | Bojan Smojver <bojan@apache.org> | 2009-06-14 07:42:37 +0000 |
---|---|---|
committer | Bojan Smojver <bojan@apache.org> | 2009-06-14 07:42:37 +0000 |
commit | 58676ba1a914d675596456c3caaded1a1058b5ce (patch) | |
tree | bb29ac955cdc85fc400925047c525a89efa0d07b /util-misc | |
parent | addc19bd6eda58b5bfabb752dcc02a4eda597913 (diff) | |
download | apr-58676ba1a914d675596456c3caaded1a1058b5ce.tar.gz |
apr_queue_trypush() doesn't block if the queue is full.
Patch by Neil Conway <nrc cs.berkeley.edu>.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@784520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util-misc')
-rw-r--r-- | util-misc/apr_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-misc/apr_queue.c b/util-misc/apr_queue.c index 8636a824a..b74fdf852 100644 --- a/util-misc/apr_queue.c +++ b/util-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) { |