Changeset 4b251ae for src/spectral


Ignore:
Timestamp:
Aug 30, 2016, 4:33:31 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
7800335
Parents:
bfab39c
Message:

src/spectral/fft.c: make calls to fftw_destroy_plan thread-safe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/fft.c

    rbfab39c r4b251ae  
    213213  del_fvec(s->compspec);
    214214#ifdef HAVE_FFTW3             // using FFTW3
     215  pthread_mutex_lock(&aubio_fftw_mutex);
    215216  fftw_destroy_plan(s->pfw);
    216217  fftw_destroy_plan(s->pbw);
    217218  fftw_free(s->specdata);
     219  pthread_mutex_unlock(&aubio_fftw_mutex);
    218220#else /* HAVE_FFTW3 */
    219221#ifdef HAVE_ACCELERATE        // using ACCELERATE
Note: See TracChangeset for help on using the changeset viewer.