[rtems commit] score: Add assert to _Thread_Dispatch()

Sebastian Huber sebh at rtems.org
Tue Jul 4 13:15:22 UTC 2017


Module:    rtems
Branch:    master
Commit:    550616e528235e6077ae01fe91dddb1e4e7386d2
Changeset: http://git.rtems.org/rtems/commit/?id=550616e528235e6077ae01fe91dddb1e4e7386d2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jul  3 07:28:15 2017 +0200

score: Add assert to _Thread_Dispatch()

Update #3060.

---

 cpukit/score/src/threaddispatch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/score/src/threaddispatch.c b/cpukit/score/src/threaddispatch.c
index 39cf80d..9cd1e29 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 {




More information about the vc mailing list