ASF Bugzilla – Attachment 19212 Details for
Bug 41099
Manually block apr_queue_pop(), apr_queue_push(), etc.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Enhancement to the apr_queue_t, header file
apr_queue.h.diff (text/plain), 1.85 KB, created by
Yossi Neiman
on 2006-12-03 16:15:47 UTC
(
hide
)
Description:
Enhancement to the apr_queue_t, header file
Filename:
MIME Type:
Creator:
Yossi Neiman
Created:
2006-12-03 16:15:47 UTC
Size:
1.85 KB
patch
obsolete
>--- /usr/local/src/apr-util-1.2.7/include/apr_queue.h 2005-02-04 14:45:35.000000000 -0600 >+++ ./apr_queue-new.h 2006-11-26 15:29:49.000000000 -0600 >@@ -102,6 +102,54 @@ > APU_DECLARE(apr_status_t) apr_queue_trypop(apr_queue_t *queue, void **data); > > /** >+ * Manually blocks pushing/adding onto the queue. >+ * >+ * @param queue the queue >+ * @returns APR_SUCCESS if blocking was successful >+ * @returns APR_EINTR the blocking was interrupted (try again) >+ * @returns APR_EOF if the queue has been terminated >+ */ >+APU_DECLARE(apr_status_t) apr_queue_blockpush(apr_queue_t *queue); >+ >+/** >+ * Manually unblocks pushing/adding onto the queue. >+ * >+ * @param queue the queue >+ * @returns APR_EOF if the queue has been terminated >+ * @returns APR_SUCCESS if unblocking was successful >+ */ >+APU_DECLARE(apr_status_t) apr_queue_unblockpush(apr_queue_t *queue); >+ >+/** >+ * Manually blocks popping/getting from the queue. >+ * >+ * @param queue the queue >+ * @returns APR_EINTR the blocking was interrupted (try again) >+ * @returns APR_EOF if the queue has been terminated >+ * @returns APR_SUCCESS if blocking was successful >+ */ >+APU_DECLARE(apr_status_t) apr_queue_blockpop(apr_queue_t *queue); >+ >+/** >+ * Manually unblocks popping/getting from the queue. >+ * >+ * @param queue the queue >+ * @returns APR_EOF if the queue has been terminated >+ * @returns APR_SUCCESS if unblocking was successful >+ */ >+APU_DECLARE(apr_status_t) apr_queue_unblockpop(apr_queue_t *queue); >+ >+/** >+ * Blocks until the queue is empty. >+ * >+ * @param queue the queue >+ * @returns APR_EINTR the blocking was interrupted (try again) >+ * @returns APR_EOF if the queue has been terminated >+ * @returns APR_SUCCESS if the queue is empty >+ */ >+APU_DECLARE(apr_status_t) apr_queue_isempty(apr_queue_t *queue); >+ >+/** > * returns the size of the queue. > * > * @warning this is not threadsafe, and is intended for reporting/monitoring
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41099
: 19212 |
19213