aboutsummaryrefslogtreecommitdiff
path: root/src/calibrate_detector.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-10-10 22:52:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:02 +0100
commit3c7c32704024753a50414e947d324b72e7116ac9 (patch)
tree7f3be4073d027cd5ad145354565494068501760e /src/calibrate_detector.c
parent313ef1a1bcc7d506730d7c3d4b19fc2dc393ace3 (diff)
Add cookies to thread pool
Diffstat (limited to 'src/calibrate_detector.c')
-rw-r--r--src/calibrate_detector.c4
1 files changed, 2 insertions, 2 deletions
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 ) {