Make the threadpool honour the int argument for number of elements to process
Compare changes
+ 42
− 10
@@ -43,8 +43,8 @@
@@ -132,15 +132,15 @@ void threadpool_dump_log(struct threadpool *tp, const char *filename,
@@ -148,6 +148,9 @@ void threadpool_chomp(struct threadpool *tp, int tid) {
@@ -166,7 +169,7 @@ void threadpool_chomp(struct threadpool *tp, int tid) {
@@ -275,11 +278,40 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,
@@ -289,7 +321,7 @@ void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,