diff options
| author | yangwei <[email protected]> | 2024-08-29 18:31:09 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-08-29 18:31:09 +0800 |
| commit | 02a50d1008631c56539b0d0fe1c047e62797659c (patch) | |
| tree | 5bd60995ce96a3b2f857041763c29ca0747b0e74 | |
| parent | cc2d2be3241da68f417fb826ec995d5036e7e328 (diff) | |
🦄 refactor(rename work thread): from work to worker
| -rw-r--r-- | infra/core/stellar_core.c | 4 |
1 files 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; |
