Skip to content

Commit

Permalink
api: queue: add odp_queue_destroy_multi() function
Browse files Browse the repository at this point in the history
Add new odp_queue_destroy_multi() function for destroying multiple queues
with a single call.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
  • Loading branch information
MatiasElo committed Oct 20, 2023
1 parent 9eef102 commit 978e1f6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/odp/api/spec/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ int odp_queue_create_multi(const char *name[], const odp_queue_param_t param[],
*/
int odp_queue_destroy(odp_queue_t queue);

/**
* Destroy multiple queues
*
* Otherwise like odp_queue_destroy(), but destroys multiple queues with a
* single call.
*
* @param queue Array of queue handles
* @param num Number of queues to destroy
*
* @retval Number of queues actually destroyed (1 ... num)
* @retval <0 on failure
*/
int odp_queue_destroy_multi(odp_queue_t queue[], int num);

/**
* Find a queue by name
*
Expand Down

0 comments on commit 978e1f6

Please sign in to comment.