mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
score: Always check queue in _Thread_Wait_cancel()
Commit 18c8a270c2 removed
_Thread_queue_Do_nothing_extract() so we have to check for a non-NULL
queue in all configurations.
This commit is contained in:
@@ -2195,8 +2195,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
|
||||
|
||||
queue = the_thread->Wait.queue;
|
||||
|
||||
#if defined(RTEMS_SMP)
|
||||
if ( queue != NULL ) {
|
||||
#if defined(RTEMS_SMP)
|
||||
_Assert( queue_context->Lock_context.Wait.queue == queue );
|
||||
#endif
|
||||
|
||||
@@ -2210,8 +2210,8 @@ RTEMS_INLINE_ROUTINE void _Thread_Wait_cancel(
|
||||
#if defined(RTEMS_SMP)
|
||||
_Assert( queue_context->Lock_context.Wait.queue == NULL );
|
||||
queue_context->Lock_context.Wait.queue = queue;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user