summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadrestart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-12 14:25:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 07:49:36 +0200
commit270394eef82ae584477cb9c443d4a5c8e67978eb (patch)
tree7cb476c1212a917454a1650c751435381c6f0b0d /cpukit/score/src/threadrestart.c
parentscore: Add _Thread_Exit() (diff)
downloadrtems-270394eef82ae584477cb9c443d4a5c8e67978eb.tar.bz2
score: Avoid superfluous life protection
Disable thread dispatching is enough to prevent deletion of the executing thread. There is no need for an additional life protection. Update #2555. Update #2626.
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r--cpukit/score/src/threadrestart.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index 0184fd1532..272fe7bb90 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -340,7 +340,6 @@ static void _Thread_Request_life_change(
void _Thread_Close( Thread_Control *the_thread, Thread_Control *executing )
{
- _Assert( _Thread_Is_life_protected( executing->Life.state ) );
_Assert( the_thread != executing );
if ( _States_Is_dormant( the_thread->current_state ) ) {
@@ -367,8 +366,6 @@ void _Thread_Close( Thread_Control *the_thread, Thread_Control *executing )
void _Thread_Exit( Thread_Control *executing )
{
- _Assert( _Thread_Is_life_protected( executing->Life.state ) );
-
_Thread_Request_life_change(
executing,
executing,