From dab902d5b2688fe958118299f7d44d1adbf13878 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 May 2016 15:43:31 +0200 Subject: testsuites: Avoid Giant lock Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable(). Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable(). This is a preparation to remove the Giant lock. Update #2555. --- testsuites/sptests/spthreadq01/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'testsuites/sptests/spthreadq01') diff --git a/testsuites/sptests/spthreadq01/init.c b/testsuites/sptests/spthreadq01/init.c index cb8d495e79..85df6bd15c 100644 --- a/testsuites/sptests/spthreadq01/init.c +++ b/testsuites/sptests/spthreadq01/init.c @@ -353,9 +353,7 @@ static rtems_task Init( TEST_BEGIN(); puts( "Init - _Thread_queue_Extract - thread not blocked on a thread queue" ); - _Thread_Disable_dispatch(); - _Thread_queue_Extract( _Thread_Executing ); - _Thread_Enable_dispatch(); + _Thread_queue_Extract( _Thread_Get_executing() ); /* is there more to check? */ test_context_init(ctx); -- cgit v1.2.3