diff mbox

[API-NEXT,PATCHv3,2/5] api: queue: add odp_queue_lock_count() API

Message ID 1442404320-5130-3-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 55caec6ba73580e3c3f08d66e70c15f650153570
Headers show

Commit Message

Bill Fischofer Sept. 16, 2015, 11:51 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/queue.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/queue.h b/include/odp/api/queue.h
index ce04eb4..df2a4c9 100644
--- a/include/odp/api/queue.h
+++ b/include/odp/api/queue.h
@@ -245,6 +245,19 @@  odp_schedule_prio_t odp_queue_sched_prio(odp_queue_t queue);
 odp_schedule_group_t odp_queue_sched_group(odp_queue_t queue);
 
 /**
+ * Queue lock count
+ *
+ * Return number of ordered locks associated with this ordered queue.
+ * Lock count is defined in odp_schedule_param_t.
+ *
+ * @param queue   Queue handle
+ *
+ * @return Number of ordered locks associated with this ordered queue
+ * @retval <0 Specified queue is not ordered
+ */
+int odp_queue_lock_count(odp_queue_t queue);
+
+/**
  * Get printable value for an odp_queue_t
  *
  * @param hdl  odp_queue_t handle to be printed