summaryrefslogtreecommitdiff
path: root/threadpool.h
diff options
context:
space:
mode:
Diffstat (limited to 'threadpool.h')
-rw-r--r--threadpool.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/threadpool.h b/threadpool.h
index 17bf3f2..0f120ab 100644
--- a/threadpool.h
+++ b/threadpool.h
@@ -63,4 +63,9 @@ void tp_free(TPContext **ctx);
int tp_execute(TPContext *ctx, unsigned int nb_jobs,
TPExecuteCallback func, void *func_arg);
+/**
+ * Get the number of threads in this thread pool.
+ */
+unsigned int tp_get_nb_threads(TPContext *ctx);
+
#endif /* TP_THREADPOOL_H */