aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-03 11:40:20 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commitacde580b102dcfd09ad65bc1ca6078413707d19a (patch)
tree8d2746d80f285c18b4f6d5c4b6ea7c1d9168cfcb /src
parent2e40558cc8e2a449af7822acb9eba960232048eb (diff)
Fix small but important bug in thread pool range worker
Diffstat (limited to 'src')
-rw-r--r--src/thread-pool.c4
1 files changed, 2 insertions, 2 deletions
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 <taw@physics.org>
+ * (c) 2006-2011 Thomas White <taw@physics.org>
*
* 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;