From 9f4c772437b327c39a0e71c7c19d9f3fd3ed478e Mon Sep 17 00:00:00 2001 From: dario Date: Sat, 28 Oct 2023 20:24:19 +0200 Subject: [PATCH] Adapted TACOS to checkTerminationRequest renaming in rtos2-utils --- Libs/rtos2-utils | 2 +- Tacos/src/manager.cpp | 3 +++ Tacos/src/thread.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Libs/rtos2-utils b/Libs/rtos2-utils index 067a48c..0e96b2e 160000 --- a/Libs/rtos2-utils +++ b/Libs/rtos2-utils @@ -1 +1 @@ -Subproject commit 067a48c30953fb5ee2c9f442f9a93a062c16ac1e +Subproject commit 0e96b2ec29fde1e56e12fc9f0dceb80012e0caf3 diff --git a/Tacos/src/manager.cpp b/Tacos/src/manager.cpp index 17755cc..2b511ef 100644 --- a/Tacos/src/manager.cpp +++ b/Tacos/src/manager.cpp @@ -82,6 +82,9 @@ namespace sta { Statemachine::stateChangeEvent.wait(Statemachine::EventFlags::ALL, osWaitForever); + HeapStats_t stats; + vPortGetHeapStats(&stats); + // Start all new tasks and stop all the tasks that aren't supposed to be running. updateThreads(); } diff --git a/Tacos/src/thread.cpp b/Tacos/src/thread.cpp index b42fd99..d6a1226 100644 --- a/Tacos/src/thread.cpp +++ b/Tacos/src/thread.cpp @@ -91,7 +91,7 @@ namespace sta init(); // Run the thread until the termination flag is set. - while (!checkTerminationRequest()) + while (!resetTerminationRequest()) { func(); }