]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: thread: implement ha_thread_relax()
authorWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 14:33:13 +0000 (16:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 May 2019 15:16:20 +0000 (17:16 +0200)
commit38171daf21f687067ff93d7b557a40527f699f5b
tree73734324438d127df5e8e964ad2b2c520bd92c50
parent20db9115dcdf07c00c59731f2e14275d67ebf747
MINOR: thread: implement ha_thread_relax()

At some places we're using a painful ifdef to decide whether to use
sched_yield() or pl_cpu_relax() to relax in loops, this is hardly
exportable. Let's move this to ha_thread_relax() instead and une
this one only.
include/common/hathreads.h
src/hathreads.c