summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadrestart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-05-28 13:37:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-03 08:15:16 +0200
commit6c7caa1a9e1587dcc069aa811e9086c220b03ea8 (patch)
tree5470465893d892e0f0caffd3033e7b6efe68c508 /cpukit/score/src/threadrestart.c
parentscore: Add Resource Handler (diff)
downloadrtems-6c7caa1a9e1587dcc069aa811e9086c220b03ea8.tar.bz2
score: Add and use _Thread_Owns_resources()
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r--cpukit/score/src/threadrestart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index 5c527d8a63..c65ef9a21b 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -47,7 +47,7 @@ static void _Thread_Make_zombie( Thread_Control *the_thread )
ISR_lock_Context lock_context;
Thread_Zombie_control *zombies = &_Thread_Zombies;
- if ( the_thread->resource_count != 0 ) {
+ if ( _Thread_Owns_resources( the_thread ) ) {
_Terminate(
INTERNAL_ERROR_CORE,
false,