aboutsummaryrefslogtreecommitdiff
path: root/src/thread-pool.h
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/thread-pool.h
parent313ef1a1bcc7d506730d7c3d4b19fc2dc393ace3 (diff)
Add cookies to thread pool
Diffstat (limited to 'src/thread-pool.h')
-rw-r--r--src/thread-pool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-pool.h b/src/thread-pool.h
index 11123493..3376b8fe 100644
--- a/src/thread-pool.h
+++ b/src/thread-pool.h
@@ -30,7 +30,7 @@ extern void run_thread_range(int n_tasks, int n_threads, const char *text,
* be passed to work(). Work will stop after 'max' tasks have been processed.
* get_task() does not need to be re-entrant.
* Returns: the number of tasks processed. */
-extern int run_threads(int n_threads, void (*work)(void *),
+extern int run_threads(int n_threads, void (*work)(void *, int),
void *(*get_task)(void *), void *queue_args, int max);