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 32eeab8..0e7949c 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;