Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Improve documentation and unit tests for SHM locks | Matthew Heon | 2019-01-04 |
| | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com> | ||
* | Propogate error codes from SHM lock creation and open | Matthew Heon | 2019-01-04 |
| | | | | | | Also add a few more unit tests Signed-off-by: Matthew Heon <matthew.heon@gmail.com> | ||
* | Add mutex invariant to SHM semaphores. | Matthew Heon | 2019-01-04 |
| | | | | | | | | | | | | Check value of semaphores when incrementing to ensure we never go beyond 1, preserving mutex invariants. Also, add cleanup code to the lock tests, ensuring that we never leave the locks in a bad state after a test. We aren't destroying and recreating the SHM every time, so we have to be careful not to leak state between test runs. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> | ||
* | Initial skeleton of in-memory locks | Matthew Heon | 2019-01-04 |
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> |