Actions
Feature #1105
closedappmgr should use semaphores for it's main loop
Start date:
15 Mar 2024
Due date:
% Done:
100%
Estimated time:
Severity:
03 - Medium
Description
Use a semaphore for the main loop instead of a simple sleep loop.
Updated by Hammel about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
See queueMgr.c and queueProcessor.c in piboxd for examples.
The main loop should just wait on a semaphore created during initialization.
The sig_handler() should post the semaphore to exit the app.
After the main loop the semaphore can be destroyed.
Updated by Hammel about 1 year ago
- % Done changed from 10 to 70
Implemented and tested on build machine (after fixing build to allow testing on build machine).
Needs to be tested on a real Pi but I think this will work fine.
Updated by Hammel about 1 year ago
- % Done changed from 70 to 90
Tested on hardware and appears to be working.
Ready to be committed and pushed.
Updated by Hammel about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Committed and pushed.
Closing issue.
Actions