Fixes for termination requests

This commit is contained in:
dario
2023-11-29 20:15:21 +01:00
committed by carlwachter
parent ca2ffc853c
commit 8cebc8800a
2 changed files with 15 additions and 7 deletions

View File

@@ -105,12 +105,17 @@ namespace sta
*/
void requestTermination();
/**
* @brief Clear the termination request flag for this thread.
*/
void deleteTerminationRequest();
/**
* @brief Resets the terminate bool to false.
*
* @return Returns the previous value of this variable.
*/
bool resetTerminationRequest();
bool isTerminationRequested();
/**
* @brief Forcibly terminate thread.