IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2008, 5:23:13 PM (18 years ago)
Author:
Paul Price
Message:

Learned that of all the fftw_ calls, only fftw_execute is thread-safe: all other calls have to be wrapped in a mutex for thread safety.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fft/psFFT.h

    r18956 r19058  
    22#define PS_FFT_H
    33
    4 /// Set number of threads to use with all FFTs
     4// Only fftw_execute is thread-safe: all other calls have to be wrapped in a mutex
     5
     6/// Lock FFT mutex
     7void psFFTLock(void);
     8
     9/// Unlock FFT mutex
     10void psFFTUnlock(void);
     11
     12/// Set number of threads for FFTW to use
    513///
    6 /// Pass zero to turn off threading
     14/// Pass zero to turn off threading.  Note that the FFTW threads are *independent* of any other threads set up
     15/// throuhg, e.g., psThread.
    716bool psFFTThreads(int threads           // Number of threads
    817    );
Note: See TracChangeset for help on using the changeset viewer.