summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/threadimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-13 07:12:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 07:49:38 +0200
commitf410ea82a4b9d5609ce170d2aa09027b5a7c4c50 (patch)
tree12a5af0bdefaa15bf4691b72928d71186cacff1c /cpukit/score/include/rtems/score/threadimpl.h
parentscore: Add _Thread_Set_state_locked() (diff)
downloadrtems-f410ea82a4b9d5609ce170d2aa09027b5a7c4c50.tar.bz2
score: Add _Thread_Clear_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.
Diffstat (limited to 'cpukit/score/include/rtems/score/threadimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/threadimpl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h
index 09e338274b..68b9e72295 100644
--- a/cpukit/score/include/rtems/score/threadimpl.h
+++ b/cpukit/score/include/rtems/score/threadimpl.h
@@ -231,6 +231,11 @@ void _Thread_Cancel( Thread_Control *the_thread, Thread_Control *executing );
*/
void _Thread_Close( Thread_Control *the_thread, Thread_Control *executing );
+States_Control _Thread_Clear_state_locked(
+ Thread_Control *the_thread,
+ States_Control state
+);
+
/**
* @brief Clears the specified thread state.
*