summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadrestart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-21 10:30:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-21 11:48:25 +0200
commit82f907430887607180211c2eba06c03ae0f175e0 (patch)
treedf62cdce1b38195c6ab55536567ca1ded11ced7f /cpukit/score/src/threadrestart.c
parentscore: Add and use _Scheduler_Get_index_by_id() (diff)
downloadrtems-82f907430887607180211c2eba06c03ae0f175e0.tar.bz2
score: _Thread_Set_life_protection()
Enable usage of _Thread_Set_life_protection() in thread dispatch critical sections. This can be used to enable the thread life-protection with thread dispatching disabled and then enable thread dispatching.
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r--cpukit/score/src/threadrestart.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index b483298647..5c527d8a63 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -373,8 +373,6 @@ bool _Thread_Set_life_protection( bool protect )
) {
_Thread_Disable_dispatch();
_Thread_Enable_dispatch();
-
- _Assert_Not_reached();
}
#endif
@@ -385,8 +383,6 @@ bool _Thread_Set_life_protection( bool protect )
_Thread_Disable_dispatch();
_Thread_Start_life_change_for_executing( executing );
_Thread_Enable_dispatch();
-
- _Assert_Not_reached();
}
return previous_life_protection;