FS-8141 Add support for apr_queue_term() to switch_apr.c
This commit is contained in:
parent
2c1ea6bc71
commit
9e29ea01b5
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue