Renamed checkTerminationRequest to avoid confusion about the actual behavior

This commit is contained in:
dario 2023-10-28 20:12:27 +02:00
parent 3900c7ba77
commit 0e96b2ec29
2 changed files with 5 additions and 3 deletions

View File

@ -104,9 +104,11 @@ namespace sta
void requestTermination(); void requestTermination();
/** /**
* @brief Returns true if this thread was requested to terminate. * @brief Resets the terminate bool to false.
*
* @return Returns the previous value of this variable.
*/ */
bool checkTerminationRequest(); bool resetTerminationRequest();
/** /**
* @brief Forcibly terminate thread. * @brief Forcibly terminate thread.

View File

@ -54,7 +54,7 @@ namespace sta
terminate_ = true; terminate_ = true;
} }
bool RtosThread::checkTerminationRequest() bool RtosThread::resetTerminationRequest()
{ {
bool temp = terminate_; bool temp = terminate_;
terminate_ = false; terminate_ = false;