Bug 41099

Summary: Manually block apr_queue_pop(), apr_queue_push(), etc.
Product: APR Reporter: Yossi Neiman <freeswitch>
Component: APR-utilAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: RESOLVED DUPLICATE    
Severity: enhancement Keywords: PatchAvailable
Priority: P2    
Version: 1.2.7   
Target Milestone: ---   
Hardware: All   
OS: All   
URL: http://www.cartissolutions.com/apr/apr_queue.enhanced.2006-12-04.tar.bz2
Attachments: Enhancement to the apr_queue_t, header file
Enhancement to the apr_queue_t, c file

Description Yossi Neiman 2006-12-03 16:13:44 UTC
I had added some additional functionality to the apr-util apr_queue_t type.  I
have made it so that you can independently manually block either the pushing or
popping of elements onto the queue, and have also added a new function that will
blocking until the queue is empty.  The apr_queue_isempty(apr_queue_t *queue)
function is useful if you need to make sure that a queue is empty before doing
something like reload the configuration for whatever is consuming from the queue.

I do not see where to attach a file, so the file with my diffs is in the url
attached to the bug.  I hope that these changes meet the high standards of the
apr dev team.  Please contact me if you have questions or comments.
Comment 1 Yossi Neiman 2006-12-03 16:15:47 UTC
Created attachment 19212 [details]
Enhancement to the apr_queue_t, header file

I guess I had to add the bug before submitting files.
Comment 2 Yossi Neiman 2006-12-03 16:16:30 UTC
Created attachment 19213 [details]
Enhancement to the apr_queue_t, c file

Second half of the enhancement.
Comment 3 Yossi Neiman 2006-12-03 16:17:21 UTC
I see I had to create the bug before attaching any files.  I have attached the
two diff files directly to the bug since.
Comment 4 Neil Conway 2009-06-28 23:19:22 UTC

*** This bug has been marked as a duplicate of bug 41254 ***