From bd12dda405e1bab16c522f7ef0dd2b455230d269 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 May 2016 11:54:49 +0200 Subject: score: Use thread state lock for current state In addition protect scheduler of thread by thread state lock. Enables use of scheduler per-instance locks. Update #2555. --- cpukit/score/include/rtems/score/thread.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/thread.h') diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index d2a6d4b5bd..15b068d92b 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -718,8 +718,11 @@ struct _Thread_Control { * The lock of this thread queue is used for various purposes. It protects * the following fields * - * - RTEMS_API_Control::Signal, and - * - Thread_Control::Post_switch_actions. + * - RTEMS_API_Control::Signal, + * - Thread_Control::current_state, + * - Thread_Control::Post_switch_actions, + * - Thread_Control::Scheduler::control, and + * - Thread_Control::Scheduler::own_control. * * @see _Thread_State_acquire(). */ -- cgit v1.2.3