From 5d23a2f2fcaa27f97474fcfed06e798c5d59056e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 20 May 2021 08:55:10 +0200 Subject: testsuites/validation/tx-support.h --- testsuites/validation/tx-support.c | 5 +++++ testsuites/validation/tx-support.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/testsuites/validation/tx-support.c b/testsuites/validation/tx-support.c index 099890dbbc..9c84deeca3 100644 --- a/testsuites/validation/tx-support.c +++ b/testsuites/validation/tx-support.c @@ -359,6 +359,11 @@ Thread_Control *GetThread( rtems_id id ) return the_thread; } +Thread_Control *GetExecuting( void ) +{ + return _Thread_Get_executing(); +} + void WaitForExecutionStop( rtems_id task_id ) { #if defined( RTEMS_SMP ) diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 163d6930c2..bf2027d20c 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -165,6 +165,8 @@ struct _Thread_Control; struct _Thread_Control *GetThread( rtems_id id ); +struct _Thread_Control *GetExecuting( void ); + void WaitForExecutionStop( rtems_id task_id ); typedef enum { -- cgit v1.2.3