Hi,
There is a test in schedule validaton : test_schedule_pause_resume in which the
following is performed:
- a number of events (buf type ) are enqueued
- a number of iteratons(NUM_BUFS_BEFORE_PAUSE) are performed and in
each iteration a schedule of type NO_WAIT is executed
Looking at the code one can see that there is a strict assertion that for each
iteration, odp_schedule function must return a valid event.
>From an implementation perspective there is no guarantee that when a "NO WAIT
>schedule" is performed, there will always be a valid event returned.
The code snippet is :
for (i = 0; i < NUM_BUFS_BEFORE_PAUSE; i++) {
ev = odp_schedule(&from, ODP_SCHED_NO_WAIT);
CU_ASSERT(from == queue);
buf = odp_buffer_from_event(ev);
odp_buffer_free(buf);
}
So I think that the assertion should be made only if the schedule returns a
valid event.
Regards,
Radu
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp