diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-12 16:32:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 07:49:37 +0200 |
commit | 9949d8a7d042da7ba53516300db5c34c8b9c8a31 (patch) | |
tree | 614aded79bd69e1134dc1b83711b0636ca8e044d /testsuites/smptests/smpthreadlife01/init.c | |
parent | score: Delete unused variable (diff) | |
download | rtems-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/init.c')
-rw-r--r-- | testsuites/smptests/smpthreadlife01/init.c | 2 |
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(); |