mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 01:31:41 +02:00
Improve naming
This commit is contained in:
@ -181,7 +181,7 @@ void PowerScheduler::checkWaitingTasks(void) {
|
|||||||
// If there are requested allowances, try to grant the one expiring next
|
// If there are requested allowances, try to grant the one expiring next
|
||||||
if (this->currentAllowances.size() > 0) {
|
if (this->currentAllowances.size() > 0) {
|
||||||
|
|
||||||
PowerScheduler::CurrentAllowance *nextAllowance = getNextAllowance();
|
PowerScheduler::CurrentAllowance *nextAllowance = getNextCurrentAllowance();
|
||||||
if (nextAllowance != nullptr) {
|
if (nextAllowance != nullptr) {
|
||||||
xTaskNotify(nextAllowance->taskHandle,
|
xTaskNotify(nextAllowance->taskHandle,
|
||||||
PowerScheduler::PowerWakeupReasons::POWER_AVAILABLE,
|
PowerScheduler::PowerWakeupReasons::POWER_AVAILABLE,
|
||||||
@ -239,7 +239,7 @@ PowerScheduler::getCurrentAllowance(TaskHandle_t taskHandle) {
|
|||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
PowerScheduler::CurrentAllowance *PowerScheduler::getNextAllowance(void) {
|
PowerScheduler::CurrentAllowance *PowerScheduler::getNextCurrentAllowance(void) {
|
||||||
TickType_t minTicks = UINT32_MAX;
|
TickType_t minTicks = UINT32_MAX;
|
||||||
CurrentAllowance *nextAllowance = nullptr;
|
CurrentAllowance *nextAllowance = nullptr;
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ public:
|
|||||||
CurrentAllowance *getCurrentAllowance(TaskHandle_t taskHandle);
|
CurrentAllowance *getCurrentAllowance(TaskHandle_t taskHandle);
|
||||||
|
|
||||||
// @brief Retrieve the allowance that will expire next
|
// @brief Retrieve the allowance that will expire next
|
||||||
CurrentAllowance *getNextAllowance(void);
|
CurrentAllowance *getNextCurrentAllowance(void);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Current above which there will be no new scheduling
|
// Current above which there will be no new scheduling
|
||||||
|
Reference in New Issue
Block a user