summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-20 08:55:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-12 14:01:24 +0200
commit5d23a2f2fcaa27f97474fcfed06e798c5d59056e (patch)
treef8d675c14613ac2ee92ab9fd783bacaea7adf6e6
parent932c9bb9b94de363de5547e43c2e7f169f8d2732 (diff)
testsuites/validation/tx-support.h
-rw-r--r--testsuites/validation/tx-support.c5
-rw-r--r--testsuites/validation/tx-support.h2
2 files changed, 7 insertions, 0 deletions
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 {