score: Add assert to _Thread_Dispatch()

Update #3060.
This commit is contained in:
Sebastian Huber
2017-07-03 07:28:15 +02:00
parent 9b07f5efe3
commit 550616e528

View File

@@ -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 {