aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-12-27 16:26:29 +0100
committerAnton Khirnov <anton@khirnov.net>2018-12-27 16:26:29 +0100
commit70186149b931a49f1eb599d2f207fdc3d3048388 (patch)
treee8f825af87c92d30d20f1ca4fb44c1e57a5fe25a /mg2d.h
parent7606e74f1a0310c1031aad48f77a7c701791025a (diff)
Add threading support through libthreadpool.
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index 2682918..c487215 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -260,6 +260,13 @@ typedef struct MG2DContext {
* Distance between neighbouring gridpoints along coord1.
*/
ptrdiff_t diff_coeffs_stride;
+
+ /**
+ * Number of threads to use for processing.
+ *
+ * Set to 0 to autodetect. Defaults to 1.
+ */
+ unsigned int nb_threads;
} MG2DContext;
/**