commit | 38171daf21f687067ff93d7b557a40527f699f5b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri May 17 16:33:13 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri May 17 17:16:20 2019 +0200 |
tree | 73734324438d127df5e8e964ad2b2c520bd92c50 | |
parent | 20db9115dcdf07c00c59731f2e14275d67ebf747 [diff] |
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.