GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — Refactor doNotGoToSleep to a wakelock counter by mark9064 · Pull Request #2107 · InfiniTimeOrg/InfiniTime Conversation
Member
Rather than tracking whether sleeping is disabled with a boolean, this moves it to a counter which records the number of requests to keep the device awake. When this counter is zero, sleeping is possible. This prevents one task from enabling sleeping when another task still wants sleeping disabled.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Build size and comparison to main:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Couple rebase mistakes breaking build I'll patch them this evening |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Rebased to resolve conflicts |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
For InfiniTime PR InfiniTimeOrg/InfiniTime#2107 a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`. If available add those files to the build target to support the current `main` and the new `WakeLock` using redesign.
For InfiniTime PR InfiniTimeOrg/InfiniTime#2107 a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`. If available add those files to the build target to support the current `main` and the new `WakeLock` using redesign.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I've updated the InfiniSim to use WakeLock.cpp if it is available, fixing this PR build pipeline
InfiniTimeOrg/InfiniSim#150
Just the little newline and we're good to go from my side
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
For InfiniTime PR InfiniTimeOrg/InfiniTime#2107 a new systemtask file is introduced `WakeLock.h` and `WakeLock.cpp`. If available add those files to the build target to support the current `main` and the new `WakeLock` using redesign.
|
merge conflict after #2109 got merged. Please resolve them when doing the little newline |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I also moved the destructor as IMO code should be minimally surprising, and now I think about it you don't really expect to find code in the header (except maybe const getters) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I always miss those formatting errors when rebasing... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I also mess up formating on rebases 😁 That's why I love the CI job checking it for me ^^
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.