From 4be632e1c0d52e8ee1470853eb276986fd358de0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Apr 2024 11:05:57 +0200 Subject: [PATCH] typo --- src/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sched.c b/src/sched.c index e21bd1f..67fd376 100644 --- a/src/sched.c +++ b/src/sched.c @@ -205,7 +205,7 @@ current_thread(struct scheduler *s) pthread_t current = pthread_self(); pthread_mutex_lock(&s->mutex); - for(int i = 0; i < s->nthreads; i++) { + for(int i = 0; i < s->nthreads; ++i) { if(pthread_equal(s->threads[i], current)) { pthread_mutex_unlock(&s->mutex); return i;