Skip to content

Commit

Permalink
complete docstring regarding --threading:on
Browse files Browse the repository at this point in the history
  • Loading branch information
Clonkk committed Apr 16, 2021
1 parent c764bac commit 0645271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fftw3.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0645271

Please sign in to comment.