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>
  • Loading branch information
MatiasElo committed Sep 27, 2023
1 parent 12ec23a commit e630522
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 @@ -88,6 +88,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 (0 ... 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 e630522

Please sign in to comment.