This is a hint to the scheduler for prefetching more events. Performance is improved when scheduler may prefetch events in parallel to application finishing processing of previous events.
Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/api/schedule.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/odp/api/schedule.h b/include/odp/api/schedule.h index 316f27b..4db8d5b 100644 --- a/include/odp/api/schedule.h +++ b/include/odp/api/schedule.h @@ -159,6 +159,20 @@ void odp_schedule_release_atomic(void); void odp_schedule_release_ordered(void); /** + * Prefetch events for next schedule call + * + * Hint the scheduler that application is about to finish processing the current + * event(s) and will soon request more events. The scheduling context status is + * not affect. The call does not guarantee that the next schedule call will + * return any number of events. It may improve system performance, since the + * scheduler may prefetch the next (batch of) event(s) in parallel to + * application processing the current event(s). + * + * @param num Number of events to prefetch + */ +void odp_schedule_prefetch(int num); + +/** * Number of scheduling priorities * * @return Number of scheduling priorities -- 2.4.5 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp