commit | 06910464ddece4b161cb38137c2841cc21577c63 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Oct 11 16:35:01 2019 +0200 |
committer | Olivier Houchard <cognet@ci0.org> | Fri Oct 11 16:37:41 2019 +0200 |
tree | 7fa1e0b20365bd7098e86966668b3047c1702b0f | |
parent | d7f2bbcbe3900362670b243d648cbd33b602309b [diff] |
MEDIUM: task: Split the tasklet list into two lists. As using an mt_list for the tasklet list is costly, instead use a regular list, but add an mt_list for tasklet woken up by other threads, to be run on the current thread. At the beginning of process_runnable_tasks(), we just take the new list, and merge it into the task_list. This should give us performances comparable to before we started using a mt_list, but allow us to use tasklet_wakeup() from other threads.