From ee810f57dd0aa841742cde74e41dc31915758fa1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 6 Oct 2007 14:41:39 +0200 Subject: [PATCH] - use local mutex, not global - moved mutex handling from FFT to FFTW wrapper - use another layer of wrappers around FFTW to be ensure thread safety --- Plugins/FFT/DCT.cs | 8 ++++---- Plugins/FFT/FFT.cs | 22 ++++++---------------- Plugins/FFT/FFTW.cs | 51 ++++++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 56 insertions(+), 25 deletions(-) diff --git a/Plugins/FFT/DCT.cs b/Plugins/FFT/DCT.cs index 8e6e936..cc5611c 100644 --- a/Plugins/FFT/DCT.cs +++ b/Plugins/FFT/DCT.cs @@ -94,7 +94,7 @@ namespace Eithne _out[0] = new ICommImage(res, socket.OriginalImages, socket.Categories); - FFTW.fftw_cleanup(); + FFTW.Cleanup(); _workdone = true; } @@ -108,12 +108,12 @@ namespace Eithne for(int x=0; x