From df2177ab5ea1c5b183513cdcac729af9c4040110 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 1 Jul 2016 14:47:07 +0200 Subject: score: Change scheduler node init and destroy Provide the scheduler node to initialize or destroy to the corresponding operations. This makes it possible to have more than one scheduler node per thread. --- cpukit/score/src/threadrestart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/src/threadrestart.c') diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 32ecfba65d..b43c019b69 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -183,7 +183,10 @@ static void _Thread_Free( Thread_Control *the_thread ) _User_extensions_Thread_delete( the_thread ); _User_extensions_Destroy_iterators( the_thread ); _ISR_lock_Destroy( &the_thread->Keys.Lock ); - _Scheduler_Node_destroy( _Scheduler_Get( the_thread ), the_thread ); + _Scheduler_Node_destroy( + _Scheduler_Get( the_thread ), + _Scheduler_Thread_get_own_node( the_thread ) + ); _ISR_lock_Destroy( &the_thread->Timer.Lock ); /* -- cgit v1.2.3