aboutsummaryrefslogtreecommitdiff
path: root/src/facetron.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-10-10 20:32:41 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:02 +0100
commit33d4fbfbbee784f734632e543a75222f38bc807d (patch)
treec9281f611a9da26433e4c3770ffce440ef25d3f9 /src/facetron.c
parenta9adbc73158e8f8b225cd59d62ad5ade648c8241 (diff)
calibrate_detecotr: Use new thread pool
Diffstat (limited to 'src/facetron.c')
-rw-r--r--src/facetron.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/facetron.c b/src/facetron.c
index 3dc7d486..27fc1608 100644
--- a/src/facetron.c
+++ b/src/facetron.c
@@ -174,8 +174,8 @@ static void refine_all(struct image *images, int n_total_patterns,
}
- munch_threads(n_total_patterns, nthreads, "Refining",
- refine_image, tasks);
+ run_thread_range(n_total_patterns, nthreads, "Refining",
+ refine_image, tasks);
free(tasks);
}
@@ -205,8 +205,8 @@ static void estimate_full(struct image *images, int n_total_patterns,
}
- munch_threads(n_total_patterns, nthreads, "Integrating",
- integrate_image, tasks);
+ run_thread_range(n_total_patterns, nthreads, "Integrating",
+ integrate_image, tasks);
free(tasks);