]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: Define the sync-point inside run_poll_loop
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 19 Oct 2017 09:59:44 +0000 (11:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:29 +0000 (13:58 +0100)
commitdc628a3a76907caecd653596527086d7054ce04b
treefcf465293efd29ace46484c54670fd3d0e0a7048
parent1d17c10d8b82662be48bf9f7a4fc7df910a08d28
MINOR: threads: Define the sync-point inside run_poll_loop

The function sync_poll_loop is called at the end of each loop inside
run_poll_loop function. It is a protected area where all threads have a chance
to execute tricky tasks with the warranty that no concurrent access is
possible. Of course, it comes with a cost because all threads must be
syncrhonized. So changes must be uncommon.
src/haproxy.c