summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskdelete.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskdelete.c')
-rw-r--r--cpukit/rtems/src/taskdelete.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c
index de57fb3ec0..b7c2cd5a81 100644
--- a/cpukit/rtems/src/taskdelete.c
+++ b/cpukit/rtems/src/taskdelete.c
@@ -47,9 +47,7 @@ rtems_status_code rtems_task_delete(
if ( the_thread == executing ) {
Per_CPU_Control *cpu_self;
- cpu_self = _Thread_Dispatch_disable_critical(
- &context.Base.Lock_context.Lock_context
- );
+ cpu_self = _Thread_queue_Dispatch_disable( &context.Base );
_ISR_lock_ISR_enable( &context.Base.Lock_context.Lock_context );
/*