diff options
Diffstat (limited to 'spec/score/tq/req/flush-priority-inherit.yml')
-rw-r--r-- | spec/score/tq/req/flush-priority-inherit.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/score/tq/req/flush-priority-inherit.yml b/spec/score/tq/req/flush-priority-inherit.yml index 002933ce..eef2856e 100644 --- a/spec/score/tq/req/flush-priority-inherit.yml +++ b/spec/score/tq/req/flush-priority-inherit.yml @@ -251,13 +251,20 @@ test-support: | TQFlush( ctx->tq_ctx ); } - static void SchedulerEvent( void *arg, const T_scheduler_event *event ) + static void SchedulerEvent( + void *arg, + const T_scheduler_event *event, + T_scheduler_when when + ) { Context *ctx; ctx = arg; - if ( event->operation == T_SCHEDULER_BLOCK ) { + if ( + when == T_SCHEDULER_BEFORE && + event->operation == T_SCHEDULER_BLOCK + ) { ctx->request.handler = Flush; ctx->request.arg = ctx; CallWithinISRSubmit( &ctx->request ); |