From 3c7c32704024753a50414e947d324b72e7116ac9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 10 Oct 2010 22:52:27 +0200 Subject: Add cookies to thread pool --- src/calibrate_detector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/calibrate_detector.c') diff --git a/src/calibrate_detector.c b/src/calibrate_detector.c index 1f413b44..ccf577dd 100644 --- a/src/calibrate_detector.c +++ b/src/calibrate_detector.c @@ -157,7 +157,7 @@ static void sum_threshold(struct image *image, double *sum, double threshold) } -static void add_image(void *args) +static void add_image(void *args, int cookie) { struct sum_args *pargs = args; struct hdfile *hdfile; @@ -178,7 +178,7 @@ static void add_image(void *args) image.orientation.y = 0.0; image.orientation.z = 0.0; - STATUS("Processing '%s'\n", pargs->filename); + STATUS("%3i: Processing '%s'\n", cookie, pargs->filename); hdfile = hdfile_open(pargs->filename); if ( hdfile == NULL ) { -- cgit v1.2.3