]> git.meshlink.io Git - meshlink/commit
Use atomic operations to check whether to write to the signal pipe.
authorGuus Sliepen <guus@meshlink.io>
Thu, 11 Jun 2020 19:52:00 +0000 (21:52 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 11 Jun 2020 20:22:58 +0000 (22:22 +0200)
commitce76e2051ce668ff4623263215bf4b38cfca46ca
tree9f96b1f15290d9f3e26a82cb2f262822d1daf350
parentcb2c4617316df5b467c6a76bf118ee65f6e1c3a2
Use atomic operations to check whether to write to the signal pipe.

We need to do an atomic test-and-set operation to check whether we can
avoid writing to the signal pipe. Use C11 atomics to do this in a portable
way (hopefully).
configure.ac
src/event.c
src/event.h
src/have.h