diff --git a/include/sta/rtos/thread.hpp b/include/sta/rtos/thread.hpp index 713cf0b..5490026 100644 --- a/include/sta/rtos/thread.hpp +++ b/include/sta/rtos/thread.hpp @@ -104,9 +104,11 @@ namespace sta 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. diff --git a/src/thread.cpp b/src/thread.cpp index 4c54e92..a4b95a1 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -54,7 +54,7 @@ namespace sta terminate_ = true; } - bool RtosThread::checkTerminationRequest() + bool RtosThread::resetTerminationRequest() { bool temp = terminate_; terminate_ = false;