From 06452713b72f148d99314cb969efafd1aef1b41c Mon Sep 17 00:00:00 2001 From: Clonkk Date: Fri, 16 Apr 2021 16:26:15 +0200 Subject: [PATCH] complete docstring regarding --threading:on --- src/fftw3.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fftw3.nim b/src/fftw3.nim index 7a86f1c..ec6a8c6 100644 --- a/src/fftw3.nim +++ b/src/fftw3.nim @@ -305,8 +305,11 @@ proc fftw_cleanup*() {.cdecl, importc: "fftw_cleanup", dynlib: Fftw3Lib.} when compileOption("threads"): proc fftw_init_threads*() {.cdecl, importc: "fftw_init_threads", dynlib: Fftw3ThreadLib.} ## Initialize once before using thread-ed plan + ## Needs ``--threads:on`` to be enabled proc fftw_plan_with_nthreads*(nthreads: cint) {.cdecl, importc: "fftw_plan_with_nthreads", dynlib: Fftw3ThreadLib.} ## Set the number of threads to use + ## Needs ``--threads:on`` to be enabled proc fftw_cleanup_threads*() {.cdecl, importc: "fftw_cleanup_threads", dynlib: Fftw3ThreadLib.} ## Additional clean-up when threads are used + ## Needs ``--threads:on`` to be enabled