From 862a0eeb1197539c0e69381cb5aaccb9e1c64c0f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 11:22:39 +0200 Subject: score: Rework _Thread_Restart_other() Rework _Thread_Restart_other() to use _Thread_Change_life_locked(). Cope with concurrent change requests by means of a pending request counter. Update #2555. Update #2626. --- cpukit/score/include/rtems/score/thread.h | 5 +++++ 1 file changed, 5 insertions(+) (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 9b35b85f91..6d41d4d4c7 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -543,6 +543,11 @@ typedef struct { * @brief The current thread life state. */ Thread_Life_state state; + + /** + * @brief The count of pending life change requests. + */ + uint32_t pending_life_change_requests; } Thread_Life_control; #if defined(RTEMS_SMP) -- cgit v1.2.3