summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smpthreadlife01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-12 16:32:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 07:49:37 +0200
commit9949d8a7d042da7ba53516300db5c34c8b9c8a31 (patch)
tree614aded79bd69e1134dc1b83711b0636ca8e044d /testsuites/smptests/smpthreadlife01
parentscore: Delete unused variable (diff)
downloadrtems-9949d8a7d042da7ba53516300db5c34c8b9c8a31.tar.bz2
score: Add Thread_Change_life()
Add _Thread_Change_life_locked() as a general function to alter the thread life state. Use it to implement _Thread_Set_life_protection() as a first step. Update #2555. Update #2626.
Diffstat (limited to 'testsuites/smptests/smpthreadlife01')
-rw-r--r--testsuites/smptests/smpthreadlife01/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/smptests/smpthreadlife01/init.c b/testsuites/smptests/smpthreadlife01/init.c
index 4597520141..bd4c88dd65 100644
--- a/testsuites/smptests/smpthreadlife01/init.c
+++ b/testsuites/smptests/smpthreadlife01/init.c
@@ -221,7 +221,7 @@ static void delay_ipi_task(rtems_task_argument variant)
* We get deleted as a side effect of enabling the thread life protection or
* later if we enable the thread dispatching.
*/
- _Thread_Set_life_protection(true);
+ _Thread_Set_life_protection( THREAD_LIFE_PROTECTED );
if (variant != 0) {
_Thread_Enable_dispatch();