mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: tasks: Don't special-case when nbthreads == 1
Instead of checking if nbthreads == 1, just and thread_mask with all_threads_mask to know if we're supposed to add the task to the local or the global runqueue.
This commit is contained in:
parent
f7e3955053
commit
19bdf2428d
1 changed files with 1 additions and 2 deletions
|
|
@ -395,8 +395,7 @@ void process_runnable_tasks()
|
|||
state = HA_ATOMIC_AND(&t->state, ~TASK_RUNNING);
|
||||
if (state)
|
||||
#ifdef USE_THREAD
|
||||
__task_wakeup(t, (t->thread_mask == tid_bit ||
|
||||
global.nbthread == 1) ?
|
||||
__task_wakeup(t, ((t->thread_mask & all_threads_mask) == tid_bit) ?
|
||||
&rqueue_local[tid] : &rqueue);
|
||||
#else
|
||||
__task_wakeup(t, &rqueue_local[tid]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue