]> git.kaiwu.me - haproxy.git/commit
MINOR: thread: split out thread_bind_to_cpu_map()
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 7 Oct 2026 12:41:12 +0000 (14:41 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 21 Oct 2026 13:13:20 +0000 (15:13 +0200)
commit32003c9a913cbad590d3fc4471a520bd90231f8c
treedae255184e1ea401624788493e8adbebdd60399b
parent9f358a780b4ed9351bc02a7edb2138e6835eba91
MINOR: thread: split out thread_bind_to_cpu_map()

set_thread_cpu_affinity() binds the current thread to the CPUs that
the cpu_map assigns to it. The next commit will need to bind to
another thread's CPUs, around the first touch of an allocation, so
split a thread_bind_to_cpu_map(tgrp, ltid) helper out of it, binding
the current thread to the CPUs assigned to local thread <ltid> of
thread group <tgrp> (0-based). set_thread_cpu_affinity() keeps its
master-process check and delegates to the new function.
include/haproxy/thread.h
src/thread.c