]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: make rqueue_ticks atomic
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Jun 2022 13:44:35 +0000 (15:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commita4fb79b4a267d16179bd05ddb9e638644dc9d6ec
treed8f2b72f39ea0dfd8b74ff19096dfe3c349a5059
parentfc5de15baa8c4436eb36596deac9b083ff5f6418
MINOR: task: make rqueue_ticks atomic

The runqueue ticks counter is per-thread and wasn't initially meant to
be shared. We'll soon have to share it so let's make it atomic. It's
only updated when waking up a task, and no performance difference was
observed. It was moved in the thread_ctx struct so that it doesn't
pollute the local cache line when it's later updated by other threads.
include/haproxy/tinfo-t.h
src/task.c