mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 01:55:59 +00:00
Renamed checkTerminationRequest to avoid confusion about the actual behavior
This commit is contained in:
parent
3900c7ba77
commit
0e96b2ec29
@ -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.
|
||||
|
@ -54,7 +54,7 @@ namespace sta
|
||||
terminate_ = true;
|
||||
}
|
||||
|
||||
bool RtosThread::checkTerminationRequest()
|
||||
bool RtosThread::resetTerminationRequest()
|
||||
{
|
||||
bool temp = terminate_;
|
||||
terminate_ = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user