]> git.corax.cc Git - toolbox/commit
include/sem: Work around busy-waiting in sem_wait()
authorMatthias Kruk <m@m10k.eu>
Sat, 17 Apr 2021 00:28:00 +0000 (09:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 17 Apr 2021 00:28:00 +0000 (09:28 +0900)
commit8d0d51960e98e46c8c286a1a32b8edd6f96c0c63
tree5c15a02845df102ed8566d7869e8bf8ec638f6a9
parentb7ae89d8c1147e1ae7d2c176aa7ab902c951102c
include/sem: Work around busy-waiting in sem_wait()

The sem_wait() function is implemented using busy-waiting, which is not
good for the environment. This commit adds a call to inotifywait as a
temporary workaround to avoid the busy-waiting.
include/sem.sh