Message ID | 1437056343-26865-1-git-send-email-bill.fischofer@linaro.org |
---|---|
State | Accepted |
Commit | 7fdfa9ad184aa752227f8db97d07b4cab8191b11 |
Headers | show |
Merged, Maxim. On 07/16/15 17:26, Nicolas Morey-Chaisemartin wrote: > Reviewed-by: Nicolas Morey-Chaisemartin <nmorey@kalray.eu> > > On 07/16/2015 04:19 PM, Bill Fischofer wrote: >> Fix race condition reported by Bug https://bugs.linaro.org/show_bug.cgi?id=1234 >> >> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> >> --- >> test/validation/scheduler/scheduler.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c >> index d5412a8..37ff0fa 100644 >> --- a/test/validation/scheduler/scheduler.c >> +++ b/test/validation/scheduler/scheduler.c >> @@ -586,7 +586,7 @@ static void scheduler_test_pause_resume(void) >> >> for (i = 0; i < NUM_BUFS_BEFORE_PAUSE; i++) { >> from = ODP_QUEUE_INVALID; >> - ev = odp_schedule(&from, ODP_SCHED_NO_WAIT); >> + ev = odp_schedule(&from, ODP_SCHED_WAIT); >> CU_ASSERT(from == queue); >> buf = odp_buffer_from_event(ev); >> odp_buffer_free(buf); > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/lng-odp
diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c index d5412a8..37ff0fa 100644 --- a/test/validation/scheduler/scheduler.c +++ b/test/validation/scheduler/scheduler.c @@ -586,7 +586,7 @@ static void scheduler_test_pause_resume(void) for (i = 0; i < NUM_BUFS_BEFORE_PAUSE; i++) { from = ODP_QUEUE_INVALID; - ev = odp_schedule(&from, ODP_SCHED_NO_WAIT); + ev = odp_schedule(&from, ODP_SCHED_WAIT); CU_ASSERT(from == queue); buf = odp_buffer_from_event(ev); odp_buffer_free(buf);
Fix race condition reported by Bug https://bugs.linaro.org/show_bug.cgi?id=1234 Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- test/validation/scheduler/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)