2003-12-16 Joel Sherrill <joel@OARcorp.com>

PR 543/rtems
	* src/threadclose.c: Make the task delete extension run outside a
	dispatch disabled critical section so extensions can free resources.
This commit is contained in:
Joel Sherrill
2003-12-16 23:30:09 +00:00
parent 2ff3518d59
commit 7a1e8c8807
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2003-12-16 Joel Sherrill <joel@OARcorp.com>
PR 543/rtems
* src/threadclose.c: Make the task delete extension run outside a
dispatch disabled critical section so extensions can free resources.
2003-11-25 Joel Sherrill <joel@OARcorp.com> 2003-11-25 Joel Sherrill <joel@OARcorp.com>
PR 526/rtems PR 526/rtems

View File

@@ -41,6 +41,8 @@ void _Thread_Close(
Thread_Control *the_thread Thread_Control *the_thread
) )
{ {
_User_extensions_Thread_delete( the_thread );
_Objects_Close( information, &the_thread->Object ); _Objects_Close( information, &the_thread->Object );
_Thread_Set_state( the_thread, STATES_TRANSIENT ); _Thread_Set_state( the_thread, STATES_TRANSIENT );
@@ -50,8 +52,6 @@ void _Thread_Close(
(void) _Watchdog_Remove( &the_thread->Timer ); (void) _Watchdog_Remove( &the_thread->Timer );
} }
_User_extensions_Thread_delete( the_thread );
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE ) #if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( _Thread_Is_allocated_fp( the_thread ) ) if ( _Thread_Is_allocated_fp( the_thread ) )