]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: quic: use task_new_on() for single-threaded tasks
authorWilly Tarreau <w@1wt.eu>
Mon, 13 Jun 2022 14:31:53 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 Jun 2022 08:38:03 +0000 (10:38 +0200)
This simply replaces a call to task_new(1<<thr) with task_new_on(thr)
so that we can later isolate the changes required to add more thread
group stuff.

src/xprt_quic.c

index 32eeab8fdc41b9e45f7c7addffb3119af5407ca4..0e7949c06bb3fc1872d1e85e587a5fd35887e2b4 100644 (file)
@@ -4442,7 +4442,7 @@ static struct quic_conn *qc_new_conn(unsigned int version, int ipv4,
 static int quic_conn_init_timer(struct quic_conn *qc)
 {
        /* Attach this task to the same thread ID used for the connection */
-       qc->timer_task = task_new(1UL << qc->tid);
+       qc->timer_task = task_new_on(qc->tid);
        if (!qc->timer_task)
                return 0;