summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {