From acde580b102dcfd09ad65bc1ca6078413707d19a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 3 Feb 2011 11:40:20 +0100 Subject: Fix small but important bug in thread pool range worker --- src/thread-pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/thread-pool.c') diff --git a/src/thread-pool.c b/src/thread-pool.c index b077fb9c..070e4fa0 100644 --- a/src/thread-pool.c +++ b/src/thread-pool.c @@ -3,7 +3,7 @@ * * A thread pool implementation * - * (c) 2006-2010 Thomas White + * (c) 2006-2011 Thomas White * * Part of CrystFEL - crystallography with a FEL * @@ -167,7 +167,7 @@ void run_thread_range(int n_tasks, int n_threads, const char *text, w->tq = NULL; w->id = i; - if ( pthread_create(&workers[i], NULL, range_worker, &w) ) { + if ( pthread_create(&workers[i], NULL, range_worker, w) ) { /* Not ERROR() here */ fprintf(stderr, "Couldn't start thread %i\n", i); n_threads = i; -- cgit v1.2.3