diff mbox

[API-NEXT,v4,4/9] api: event: define odp_event_free()

Message ID 1435770379-30000-5-git-send-email-zoltan.kiss@linaro.org
State Accepted
Commit 808889865d0f7f44f926c61031f51a81a022b8e3
Headers show

Commit Message

Zoltan Kiss July 1, 2015, 5:06 p.m. UTC
We need a convenient function which calls the right type-depending free()
function.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
v4: incorporate Petri's suggestions into formatting

 include/odp/api/event.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/event.h b/include/odp/api/event.h
index 63b476f..cefad12 100644
--- a/include/odp/api/event.h
+++ b/include/odp/api/event.h
@@ -78,6 +78,17 @@  int odp_event_type(odp_event_t event);
 uint64_t odp_event_to_u64(odp_event_t hdl);
 
 /**
+ * Free event
+ *
+ * Frees the event based on its type. Results are undefined if event
+ * type is unknown.
+ *
+ * @param event    Event handle
+ *
+ */
+void odp_event_free(odp_event_t event);
+
+/**
  * @}
  */