From 9a99ce15d0878d847b4c7e054eb2996a9f5fbc34 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 13 May 2016 07:12:10 +0200 Subject: score: Add _Thread_Set_state_locked() This makes it possible to do thread state and thread life changes together under protection of the thread state lock. Update #2555. Update #2626. --- cpukit/score/include/rtems/score/threadimpl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpukit/score/include/rtems/score/threadimpl.h') diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h index eee896dd4b..09e338274b 100644 --- a/cpukit/score/include/rtems/score/threadimpl.h +++ b/cpukit/score/include/rtems/score/threadimpl.h @@ -247,6 +247,11 @@ States_Control _Thread_Clear_state( States_Control state ); +States_Control _Thread_Set_state_locked( + Thread_Control *the_thread, + States_Control state +); + /** * @brief Sets the specified thread state. * -- cgit v1.2.3