diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-12-27 16:26:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-12-27 16:26:29 +0100 |
commit | 70186149b931a49f1eb599d2f207fdc3d3048388 (patch) | |
tree | e8f825af87c92d30d20f1ca4fb44c1e57a5fe25a /mg2d.h | |
parent | 7606e74f1a0310c1031aad48f77a7c701791025a (diff) |
Add threading support through libthreadpool.
Diffstat (limited to 'mg2d.h')
-rw-r--r-- | mg2d.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; /** |