summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src
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/posix/src
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/posix/src')
-rw-r--r--cpukit/posix/src/pthreadexit.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/posix/src/pthreadexit.c b/cpukit/posix/src/pthreadexit.c
index 940fa381c1..559e37cc41 100644
--- a/cpukit/posix/src/pthreadexit.c
+++ b/cpukit/posix/src/pthreadexit.c
@@ -34,13 +34,11 @@ void _POSIX_Thread_Exit(
Thread_Control *executing;
Thread_Control *unblocked;
POSIX_API_Control *api;
- bool previous_life_protection;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
_Assert( _Debug_Is_thread_dispatching_allowed() );
- previous_life_protection = _Thread_Set_life_protection( true );
_Thread_Disable_dispatch();
the_thread->Wait.return_argument = value_ptr;
@@ -74,7 +72,6 @@ void _POSIX_Thread_Exit(
}
_Thread_Enable_dispatch();
- _Thread_Set_life_protection( previous_life_protection );
}
void pthread_exit(