Adapted TACOS to checkTerminationRequest renaming in rtos2-utils

This commit is contained in:
dario 2023-10-28 20:24:19 +02:00
parent 5e23008b78
commit 9f4c772437
3 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 067a48c30953fb5ee2c9f442f9a93a062c16ac1e Subproject commit 0e96b2ec29fde1e56e12fc9f0dceb80012e0caf3

View File

@ -82,6 +82,9 @@ namespace sta
{ {
Statemachine::stateChangeEvent.wait(Statemachine::EventFlags::ALL, osWaitForever); 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. // Start all new tasks and stop all the tasks that aren't supposed to be running.
updateThreads(); updateThreads();
} }

View File

@ -91,7 +91,7 @@ namespace sta
init(); init();
// Run the thread until the termination flag is set. // Run the thread until the termination flag is set.
while (!checkTerminationRequest()) while (!resetTerminationRequest())
{ {
func(); func();
} }