]> git.corax.cc Git - toolbox/commit
include/{mutex,wmutex}: Change mutexes back to the sleep-based approach
authorMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:22:43 +0000 (11:22 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 6 Jun 2021 02:22:43 +0000 (11:22 +0900)
commit005ec83231e9ce90fd601fa34ac2585d13b008fd
treebc2cb0f8f7a23900a87722ccaf0eecf333c10723
parent5f5746226c674bb6a9eadfbe70bfca530d73bbfc
include/{mutex,wmutex}: Change mutexes back to the sleep-based approach

Using inotifywait to wait on a mutex does not work reliably when the mutex
is on an NFS and the processes synchronizing on it are running on different
machines.
This commit changes the implementations of mutex and wmutex back to use
sleep instead of inotifywait.
include/mutex.sh
include/wmutex.sh