[rtems commit] score: Fix thread pinning assertions
Sebastian Huber
sebh at rtems.org
Mon Nov 15 11:38:59 UTC 2021
Module: rtems
Branch: master
Commit: 7a591d0cd43ae6588afe9bac73775abb3c6d9c9d
Changeset: http://git.rtems.org/rtems/commit/?id=7a591d0cd43ae6588afe9bac73775abb3c6d9c9d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed May 12 10:53:48 2021 +0200
score: Fix thread pinning assertions
---
cpukit/include/rtems/score/threadimpl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index b1ec05f..934b564 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -2652,7 +2652,7 @@ void _Thread_Do_unpin(
RTEMS_INLINE_ROUTINE void _Thread_Pin( Thread_Control *executing )
{
#if defined(RTEMS_SMP)
- _Assert( executing == _Thread_Executing );
+ _Assert( executing == _Thread_Get_executing() );
executing->Scheduler.pin_level += THREAD_PIN_STEP;
#else
@@ -2674,7 +2674,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Unpin(
#if defined(RTEMS_SMP)
unsigned int pin_level;
- _Assert( executing == _Thread_Executing );
+ _Assert( executing == _Per_CPU_Get_executing( cpu_self ) );
pin_level = executing->Scheduler.pin_level;
_Assert( pin_level > 0 );
More information about the vc
mailing list