haproxy/include
Olivier Houchard a7bf573520 MEDIUM: fd: Introduce a running mask, and use it instead of the spinlock.
In the struct fdtab, introduce a new mask, running_mask. Each thread should
add its bit before using the fd.
Use the running_mask instead of a lock, in fd_insert/fd_delete, we'll just
spin as long as the mask is non-zero, to be sure we access the data
exclusively.
fd_set_running_excl() spins until the mask is 0, fd_set_running() just
adds the thread bit, and fd_clr_running() removes it.
2020-03-17 15:30:07 +01:00
..
common MEDIUM: fd: Introduce a running mask, and use it instead of the spinlock. 2020-03-17 15:30:07 +01:00
import
proto MEDIUM: fd: Introduce a running mask, and use it instead of the spinlock. 2020-03-17 15:30:07 +01:00
types MEDIUM: fd: Introduce a running mask, and use it instead of the spinlock. 2020-03-17 15:30:07 +01:00