aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-29 12:26:41 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:04 +0100
commitcc23b6eb31f8c4f59be3acf9f1bc8c51daf25e55 (patch)
tree944c74c7092b4113880fdbbddda12824027b519e /src
parent3f14e324e6838bfeab03bbab222e363c8ffc2134 (diff)
Fix thread pool finalisation args
Diffstat (limited to 'src')
-rw-r--r--src/thread-pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-pool.c b/src/thread-pool.c
index 6228004b..d9f734d8 100644
--- a/src/thread-pool.c
+++ b/src/thread-pool.c
@@ -202,7 +202,7 @@ static void *task_worker(void *pargsv)
q->n_completed++;
q->cookies[mycookie] = 0;
if ( q->finalise ) {
- q->finalise(q, task);
+ q->finalise(q->queue_args, task);
}
pthread_mutex_unlock(&q->lock);