From dc6a96abe706f7bb7c959fcffff12b11801dc377 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 19 Apr 2024 16:27:58 +0200 Subject: [PATCH] better name --- src/sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sched.c b/src/sched.c index b3d5b8c..d577faf 100644 --- a/src/sched.c +++ b/src/sched.c @@ -36,7 +36,7 @@ struct scheduler { static struct scheduler sched; /* Lance une tâche de la pile */ -void *worker_routine(void *); +void *sched_worker(void *); int sched_init(int nthreads, int qlen, taskfunc f, void *closure) @@ -73,7 +73,7 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure) pthread_t threads[nthreads]; for(int i = 0; i < nthreads; ++i) { - if(pthread_create(&threads[i], NULL, worker_routine, &sched) != 0) { + if(pthread_create(&threads[i], NULL, sched_worker, &sched) != 0) { fprintf(stderr, "Can't create the thread %d", i); if(i > 0) { @@ -128,7 +128,7 @@ sched_spawn(taskfunc f, void *closure, struct scheduler *s) } void * -worker_routine(void *arg) +sched_worker(void *arg) { struct scheduler *s = (struct scheduler *)arg;