From 270394eef82ae584477cb9c443d4a5c8e67978eb Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 May 2016 14:25:50 +0200 Subject: 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. --- cpukit/score/src/threadrestart.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'cpukit/score/src/threadrestart.c') 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, -- cgit v1.2.3