summaryrefslogtreecommitdiffstats
path: root/spec/score/tq/req/flush-fifo.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spec/score/tq/req/flush-fifo.yml')
-rw-r--r--spec/score/tq/req/flush-fifo.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/score/tq/req/flush-fifo.yml b/spec/score/tq/req/flush-fifo.yml
index f7842175..8c543ad7 100644
--- a/spec/score/tq/req/flush-fifo.yml
+++ b/spec/score/tq/req/flush-fifo.yml
@@ -140,13 +140,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 );