From 8d87dadd0de533604306781f38a3894f26be623c Mon Sep 17 00:00:00 2001 From: loikki <loic.hausammann@protonmail.ch> Date: Tue, 24 Nov 2020 10:15:34 +0100 Subject: [PATCH] Fix threadpool --- src/threadpool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/threadpool.c b/src/threadpool.c index 1bec817fed..932c74a271 100644 --- a/src/threadpool.c +++ b/src/threadpool.c @@ -273,7 +273,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function, void *extra_data) { #ifdef SWIFT_DEBUG_THREADPOOL - ticks tic = getticks(); + ticks tic_total = getticks(); #endif /* If we just have a single thread, call the map function directly. */ @@ -284,7 +284,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function, #ifdef SWIFT_DEBUG_THREADPOOL tp->map_function = map_function; - threadpool_log(tp, 0, N, tic, getticks()); + threadpool_log(tp, 0, N, tic_total, getticks()); #endif } else { @@ -343,7 +343,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function, #ifdef SWIFT_DEBUG_THREADPOOL /* Log the total call time to thread id -1. */ - threadpool_log(tp, -1, N, tic, getticks()); + threadpool_log(tp, -1, N, tic_total, getticks()); #endif } -- GitLab