haproxy/include
Christopher Faulet 339fff8a18 MEDIUM: threads: Adds a set of functions to handle sync-point
A sync-point is a protected area where you have the warranty that no concurrency
access is possible. It is implementated as a thread barrier to enter in the
sync-point and another one to exit from it. Inside the sync-point, all threads
that must do some syncrhonous processing will be called one after the other
while all other threads will wait. All threads will then exit from the
sync-point at the same time.

A sync-point will be evaluated only when necessary because it is a costly
operation. To limit the waiting time of each threads, we must have a mechanism
to wakeup all threads. This is done with a pipe shared by all threads. By
writting in this pipe, we will interrupt all threads blocked on a poller. The
pipe is then flushed before exiting from the sync-point.
2017-10-31 13:58:29 +01:00
..
common MEDIUM: threads: Adds a set of functions to handle sync-point 2017-10-31 13:58:29 +01:00
import MINOR: threads: Add atomic-ops and plock includes in import dir 2017-10-31 11:36:13 +01:00
proto MEDIUM: mailers: Init alerts during conf parsing and refactor their processing 2017-10-31 11:36:12 +01:00
types MINOR: threads: Add nbthread parameter 2017-10-31 13:58:29 +01:00