Files
Enes Cakir 104ce38f8b Add <SEM>_set? helper to base prog
Models have `incr_<SEM>` and `<SEM>_set?` to interact with semaphores.
Progs also have `incr_<SEM>`, `decr_<SEM>`, and `when_<SEM>_set?` to
interact with semaphores. The `when_<SEM>_set?` method accepts a block
and executes it when the semaphore is set, so we can't negate the
condition. Additionally, it doesn't offer much advantage over
`<SEM>_set?`. Having two different interfaces makes things more complex,
so we might consider removing `when_<SEM>_set?`. As a first step, I
added a `<SEM>_set?` helper to the base prog. I used it to check for the
absence of the destroying semaphore instead of checking via its subject.
Since we have the `incr` method on both the prog and model, we can also
have the `set?` method on both.
2025-02-08 17:10:15 +03:00
..
2025-02-08 17:10:15 +03:00
2025-02-08 17:10:15 +03:00
2025-02-08 17:10:15 +03:00
2025-02-08 17:10:15 +03:00
2024-11-29 15:23:22 +01:00
2024-11-22 12:08:50 -08:00
2024-11-21 11:50:30 -08:00
2024-05-07 16:10:05 +02:00
2023-11-10 12:54:43 -08:00
2025-02-07 22:05:25 +03:00