aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
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;
/**