From 9e29ea01b59280845f481f5b7b3743251c77dd50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Zaprza=C5=82a?= Date: Mon, 31 Aug 2015 17:43:48 +0200 Subject: [PATCH] FS-8141 Add support for apr_queue_term() to switch_apr.c --- src/include/switch_apr.h | 2 ++ src/switch_apr.c | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/include/switch_apr.h b/src/include/switch_apr.h index 0bddcd4978..5ab5d35e7e 100644 --- a/src/include/switch_apr.h +++ b/src/include/switch_apr.h @@ -659,6 +659,8 @@ SWITCH_DECLARE(switch_status_t) switch_queue_trypop(switch_queue_t *queue, void SWITCH_DECLARE(switch_status_t) switch_queue_interrupt_all(switch_queue_t *queue); +SWITCH_DECLARE(switch_status_t) switch_queue_term(switch_queue_t *queue); + /** * push/add a object to the queue, returning immediatly if the queue is full * diff --git a/src/switch_apr.c b/src/switch_apr.c index 81b448eba5..8407d42713 100644 --- a/src/switch_apr.c +++ b/src/switch_apr.c @@ -1119,7 +1119,6 @@ SWITCH_DECLARE(switch_status_t) switch_queue_pop_timeout(switch_queue_t *queue, return apr_queue_pop_timeout(queue, data, timeout); } - SWITCH_DECLARE(switch_status_t) switch_queue_push(switch_queue_t *queue, void *data) { apr_status_t s; @@ -1141,6 +1140,11 @@ SWITCH_DECLARE(switch_status_t) switch_queue_interrupt_all(switch_queue_t *queue return apr_queue_interrupt_all(queue); } +SWITCH_DECLARE(switch_status_t) switch_queue_term(switch_queue_t *queue) +{ + return apr_queue_term(queue); +} + SWITCH_DECLARE(switch_status_t) switch_queue_trypush(switch_queue_t *queue, void *data) { apr_status_t s;