]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: only use atomic ops to touch the flags
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jun 2022 07:19:46 +0000 (09:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commitbdcd32598f4f10a9cdf266f5375b1600b9f8a9a3
tree43ffeacda885d704deb0548aac2f1cf66b596728
parent8e079cdd4432946abd7d22d44b5a1090b35871c4
MINOR: thread: only use atomic ops to touch the flags

The thread flags are touched a little bit by other threads, e.g. the STUCK
flag may be set by other ones, and they're watched a little bit. As such
we need to use atomic ops only to manipulate them. Most places were already
using them, but here we generalize the practice. Only ha_thread_dump() does
not change because it's run under isolation.
include/haproxy/task.h
src/activity.c
src/debug.c
src/fd.c
src/listener.c
src/task.c
src/wdt.c