Skip to content

Conversation

JordanYates
Copy link
Contributor

Add application states framework. This can be used to share generic state between independant software libraries.

Set INFUSE_STATE_REBOOTING if a reboot is scheduled with infuse_reboot_delayed.

Add special handling to task scheduling when the system is about to be rebooted. New tasks should not be started, running tasks should be terminated.

Increase the default size of the notification heap as 256 has been
observed to be insufficient.

Signed-off-by: Jordan Yates <[email protected]>
Add application states framework. This can be used to share generic
state between independant software libraries.

Signed-off-by: Jordan Yates <[email protected]>
Test the application states library.

Signed-off-by: Jordan Yates <[email protected]>
Enable `INFUSE_APPLICATION_STATES` by default for applications.

Signed-off-by: Jordan Yates <[email protected]>
Set `INFUSE_STATE_REBOOTING` if a reboot is scheduled with
`infuse_reboot_delayed`.

Signed-off-by: Jordan Yates <[email protected]>
Automatically run `infuse_states_tick` after iterating the task runner.

Signed-off-by: Jordan Yates <[email protected]>
Add special handling to scheduling when the system is about to be
rebooted. New tasks should not be started, running tasks should be
terminated.

Signed-off-by: Jordan Yates <[email protected]>
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.74%. Comparing base (95186cb) to head (87ef7be).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #242      +/-   ##
==========================================
+ Coverage   92.67%   92.74%   +0.07%     
==========================================
  Files         102      103       +1     
  Lines        3797     3834      +37     
  Branches      589      597       +8     
==========================================
+ Hits         3519     3556      +37     
  Misses        137      137              
  Partials      141      141              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JordanYates JordanYates merged commit d65cc60 into main Sep 10, 2024
10 checks passed
@JordanYates JordanYates deleted the feature/app_states branch September 10, 2024 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant