[rtems commit] score: Destroy thread timer lock

Sebastian Huber sebh at rtems.org
Fri Mar 18 06:47:22 UTC 2016


Module:    rtems
Branch:    master
Commit:    90de3001089a8de300d9339b2d8d49a51ebd9674
Changeset: http://git.rtems.org/rtems/commit/?id=90de3001089a8de300d9339b2d8d49a51ebd9674

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar 18 07:39:51 2016 +0100

score: Destroy thread timer lock

Update #2554.

---

 cpukit/score/src/threadrestart.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c
index d366f97..f541974 100644
--- a/cpukit/score/src/threadrestart.c
+++ b/cpukit/score/src/threadrestart.c
@@ -97,11 +97,8 @@ static void _Thread_Free( Thread_Control *the_thread )
     _Objects_Get_information_id( the_thread->Object.id );
 
   _User_extensions_Thread_delete( the_thread );
-
-  /*
-   * Free the per-thread scheduling information.
-   */
   _Scheduler_Node_destroy( _Scheduler_Get( the_thread ), the_thread );
+  _ISR_lock_Destroy( &the_thread->Timer.Lock );
 
   /*
    *  The thread might have been FP.  So deal with that.



More information about the vc mailing list