Skip to content

Commit 4faf27e

Browse files
author
Bojan Smojver
committed
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-util/trunk@784519 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3a071f2 commit 4faf27e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/apr_queue.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ APU_DECLARE(apr_status_t) apr_queue_push(apr_queue_t *queue, void *data)
202202
}
203203

204204
/**
205-
* Push new data onto the queue. Blocks if the queue is full. Once
206-
* the push operation has completed, it signals other threads waiting
207-
* in apr_queue_pop() that they may continue consuming sockets.
205+
* Push new data onto the queue. If the queue is full, return APR_EAGAIN. If
206+
* the push operation completes successfully, it signals other threads
207+
* waiting in apr_queue_pop() that they may continue consuming sockets.
208208
*/
209209
APU_DECLARE(apr_status_t) apr_queue_trypush(apr_queue_t *queue, void *data)
210210
{

0 commit comments

Comments
 (0)