From 02a50d1008631c56539b0d0fe1c047e62797659c Mon Sep 17 00:00:00 2001 From: yangwei Date: Thu, 29 Aug 2024 18:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor(rename=20work=20thread)?= =?UTF-8?q?:=20from=20work=20to=20worker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infra/core/stellar_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/core/stellar_core.c b/infra/core/stellar_core.c index c6c9400..12d3639 100644 --- a/infra/core/stellar_core.c +++ b/infra/core/stellar_core.c @@ -175,7 +175,7 @@ static inline void print_thread_stat(struct stellar_thread *thread) stellar_stat_print(runtime->stat, &thr_stat, thread->idx); } -static void *work_thread(void *arg) +static void *worker_thread(void *arg) { int nr_recv; uint64_t now_ms = 0; @@ -462,7 +462,7 @@ static int stellar_thread_run(struct stellar *st) for (uint16_t i = 0; i < config->pkt_io_opts.nr_threads; i++) { struct stellar_thread *thread = &runtime->threads[i]; - if (pthread_create(&thread->tid, NULL, work_thread, (void *)thread) < 0) + if (pthread_create(&thread->tid, NULL, worker_thread, (void *)thread) < 0) { CORE_LOG_ERROR("unable to create worker thread, error %d: %s", errno, strerror(errno)); return -1;