🦄 refactor(rename work thread): from work to worker
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user