commit | 3911ee85df812e63d359f2d6e8ef0fb663254249 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Nov 14 10:26:53 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 16 11:19:46 2017 +0100 |
tree | e027d8065caafa61beb0ca4d853d3d6d241aeab7 | |
parent | 96d4483df75458614339879e359b72169fa6b760 [diff] |
MINOR: tasks: Use a bitfield to track tasks activity per-thread a bitfield has been added to know if there are runnable tasks for a thread. When a task is woken up, the bits corresponding to its thread_mask are set. When all tasks for a thread have been evaluated without any wakeup, the thread is removed from active ones by unsetting its tid_bit from the bitfield.