Fixes to the threadpool
Compare changes
+ 4
− 2
@@ -268,6 +268,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,
@@ -330,10 +331,11 @@ void threadpool_clean(struct threadpool *tp) {
Don't free the tp->threads
struct when not allocated (1 thread).
Also set the function when logging one thread (otherwise we don't
get the function names in log).
More testing to check 1 thread behaviour and different numbers of threads. Tweak output to make progress more obvious.
Good catch, thanks!