mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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 ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user