Add lld-parking-lot module: thread-safe parking lot with Strategy, Observer and CAS-based spot claiming, 10 tests incl. 64-thread race

This commit is contained in:
2026-10-22 08:01:55 +00:00
parent d4b3a63615
commit a5fbf45971
24 changed files with 670 additions and 1 deletions
@@ -0,0 +1,11 @@
PASS truckIsRejectedWhenOnlyMediumSpotsAreFree
PASS listenersSeeEveryChange
PASS samePlateCannotBeInsideTwice
PASS bestFitKeepsLargeSpotsFreeForTrucks
PASS concurrentDuplicatePlateAdmitsExactlyOne
PASS failedParkDoesNotLeaveThePlateReserved
PASS nearestFirstTakesTheFirstFreeSpotThatFits
PASS feeRoundsPartialHoursUpAndHasAGracePeriod
PASS concurrentParkingNeverDoubleBooksASpot
PASS exitFreesTheSpotAndTheTicketIsSingleUse
10 tests, 0 failures