From 550616e528235e6077ae01fe91dddb1e4e7386d2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 3 Jul 2017 07:28:15 +0200 Subject: score: Add assert to _Thread_Dispatch() Update #3060. --- cpukit/score/src/threaddispatch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/score/src/threaddispatch.c') diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c index 39cf80d243..9cd1e294ed 100644 --- a/cpukit/score/src/threaddispatch.c +++ b/cpukit/score/src/threaddispatch.c @@ -248,6 +248,7 @@ void _Thread_Dispatch( void ) if ( cpu_self->dispatch_necessary ) { _Profiling_Thread_dispatch_disable( cpu_self, 0 ); + _Assert( cpu_self->thread_dispatch_disable_level == 0 ); cpu_self->thread_dispatch_disable_level = 1; _Thread_Do_dispatch( cpu_self, level ); } else { -- cgit v1.2.3