mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
BUG/MEDIUM: tasks: Use the local runqueue when building without threads.
When building without threads enabled, instead of just using the global runqueue, just use the local runqueue associated with the only thread, as that's what is now expected for a single thread in prcoess_runnable_tasks(). This should fix haproxy when built without threads.
This commit is contained in:
parent
cc0a957a50
commit
e13ab8b3c6
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ static inline void task_wakeup(struct task *t, unsigned int f)
|
|||
else
|
||||
root = &rqueue;
|
||||
#else
|
||||
struct eb_root *root = &rqueue;
|
||||
struct eb_root *root = &rqueue_local[tid];
|
||||
#endif
|
||||
|
||||
state = HA_ATOMIC_OR(&t->state, f);
|
||||
|
|
|
|||
Loading…
Reference in a new issue