Bug description
The Monitor class doesn't handle the scenario where a process that is waiting to enter the critical section is terminated. It currently incorrectly allows the next waiting process to enter the critical section.
To Reproduce
Steps to reproduce the behavior:
- Copy the tests from MutexTest to MonitorTest
- Run the tests
- #testTerminatingBlockedCriticalSectionShouldNotUnblockAnotherWaitingSection fails
Expected behavior
All tests pass.
Screenshots
N/A
Version information:
- OS: NixOS
- Version: 24.11
- Pharo Version: 13
Expected development cost
2 days, but PR on the way.