Merged only this first patch because second one needs more rework.
Thanks,
Maxim.
On 12/12/2014 11:54 AM, Savolainen, Petri (NSN - FI/Espoo) wrote:
Reviewed-by: Petri Savolainen <[email protected]>
-----Original Message-----
From: [email protected] [mailto:lng-odp-
[email protected]] On Behalf Of ext Taras Kondratiuk
Sent: Tuesday, December 02, 2014 5:47 PM
To: [email protected]
Subject: [lng-odp] [PATCHv2 1/2] api: queue: add odp_queue_destroy()
Signed-off-by: Taras Kondratiuk <[email protected]>
---
platform/linux-generic/include/api/odp_queue.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/platform/linux-generic/include/api/odp_queue.h
b/platform/linux-generic/include/api/odp_queue.h
index b8ac4bb..b994c20 100644
--- a/platform/linux-generic/include/api/odp_queue.h
+++ b/platform/linux-generic/include/api/odp_queue.h
@@ -124,6 +124,20 @@ odp_queue_t odp_queue_create(const char *name,
odp_queue_type_t type,
odp_queue_param_t *param);
/**
+ * Destroy ODP queue
+ *
+ * Destroys ODP queue. The queue must be empty and detached from other
+ * ODP API (crypto, pktio, etc). Application must ensure that no other
+ * operations on this queue are invoked in parallel. Otherwise behavior
+ * is undefined.
+ *
+ * @param queue Queue handle
+ *
+ * @return 0 if successful
+ */
+int odp_queue_destroy(odp_queue_t queue);
+
+/**
* Find a queue by name
*
* @param name Queue name
--
1.7.9.5
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp