diff options
author | Petri Savolainen <petri.savolainen@linaro.org> | 2017-11-30 16:20:36 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2017-12-27 21:58:43 +0300 |
commit | 7db70a7e350617fac989c565d22fc834353b0668 (patch) | |
tree | d95239e7f6177be32ea593ded250082a0dc0ad02 /include/odp/api/spec/event.h | |
parent | b041ee919ad847ca3bab74418a32b419465729fa (diff) |
api: event: add free multiple
It's more efficient to free multiple events with a single
call than with separate calls.
Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp/api/spec/event.h')
-rw-r--r-- | include/odp/api/spec/event.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/odp/api/spec/event.h b/include/odp/api/spec/event.h index f924973f0..7e895c315 100644 --- a/include/odp/api/spec/event.h +++ b/include/odp/api/spec/event.h @@ -150,6 +150,28 @@ uint64_t odp_event_to_u64(odp_event_t hdl); void odp_event_free(odp_event_t event); /** + * Free multiple events + * + * Otherwise like odp_event_free(), but frees multiple events to their + * originating pools. + * + * @param event Array of event handles + * @param num Number of events to free + */ +void odp_event_free_multi(const odp_event_t event[], int num); + +/** + * Free multiple events to the same pool + * + * Otherwise like odp_event_free_multi(), but all events must be from the + * same originating pool. + * + * @param event Array of event handles + * @param num Number of events to free + */ +void odp_event_free_sp(const odp_event_t event[], int num); + +/** * @} */ |