summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-09 17:37:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-09 17:38:11 +0200
commit9d078b29dfd707310d82373bdc56a72f732f1f88 (patch)
treed168e9abf9b0e3be40c1cdae4386caf7da717052
parent12d79d49b38e880b014e4302ea2dfd6b3a74ce08 (diff)
tx-support KillZombies()
-rw-r--r--testsuites/validation/tx-support.c7
-rw-r--r--testsuites/validation/tx-support.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.c b/testsuites/validation/tx-support.c
index 6e1a27beb8..1733b32ef1 100644
--- a/testsuites/validation/tx-support.c
+++ b/testsuites/validation/tx-support.c
@@ -444,6 +444,13 @@ Thread_Control *GetExecuting( void )
return _Thread_Get_executing();
}
+void KillZombies( void )
+{
+ _RTEMS_Lock_allocator();
+ _Thread_Kill_zombies();
+ _RTEMS_Unlock_allocator();
+}
+
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 19467f5b99..759174f188 100644
--- a/testsuites/validation/tx-support.h
+++ b/testsuites/validation/tx-support.h
@@ -178,6 +178,8 @@ struct _Thread_Control *GetThread( rtems_id id );
struct _Thread_Control *GetExecuting( void );
+void KillZombies( void );
+
void WaitForExecutionStop( rtems_id task_id );
typedef enum {