commit | a4fb79b4a267d16179bd05ddb9e638644dc9d6ec | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Jun 16 15:44:35 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 01 19:15:14 2022 +0200 |
tree | d8f2b72f39ea0dfd8b74ff19096dfe3c349a5059 | |
parent | fc5de15baa8c4436eb36596deac9b083ff5f6418 [diff] |
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.