vault backup: 2025-04-06 17:54:00

This commit is contained in:
Marco Realacci 2025-04-06 17:54:00 +02:00
parent 85864a4edc
commit e5f0cf896b

View file

@ -299,4 +299,5 @@ def end_write() :=
W_MUTEX.up() W_MUTEX.up()
return return
``` ```
This is prioritizing writers as if there are writers waiting, they will be waiting at `GLOB_MUTEX.down()`. This semaphore is upped before `PRIO_MUTEX` which is the one that blocks readers. This is prioritizing writers as if there are writers waiting, they will be waiting at `GLOB_MUTEX.down()`. This semaphore is upped before `PRIO_MUTEX` which is the one that blocks readers.
It is weak as a writer cannot block readers twice.