Loading [MathJax]/extensions/TeX/AMSsymbols.js
LAL 7.7.0.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
FFTWMutex.h
Go to the documentation of this file.
1/*
2* Copyright (C) 2007-2012 Jolien Creighton, Drew Keppel
3*
4* This program is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License as published by
6* the Free Software Foundation; either version 2 of the License, or
7* (at your option) any later version.
8*
9* This program is distributed in the hope that it will be useful,
10* but WITHOUT ANY WARRANTY; without even the implied warranty of
11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12* GNU General Public License for more details.
13*
14* You should have received a copy of the GNU General Public License
15* along with with program; see the file COPYING. If not, write to the
16* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17* MA 02110-1301 USA
18*/
19
20#ifndef _FFTWMUTEX_H
21#define _FFTWMUTEX_H
22
23#include <lal/LALConfig.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29void XLALFFTWWisdomLock(void);
30void XLALFFTWWisdomUnlock(void);
31
32#if defined(LAL_PTHREAD_LOCK) && defined(LAL_FFTW3_ENABLED)
33# define LAL_FFTW_WISDOM_LOCK XLALFFTWWisdomLock()
34# define LAL_FFTW_WISDOM_UNLOCK XLALFFTWWisdomUnlock()
35#else
36# define LAL_FFTW_WISDOM_LOCK
37# define LAL_FFTW_WISDOM_UNLOCK
38#endif
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* _FFTWMUTEX_H */
void XLALFFTWWisdomLock(void)
Aquire LAL's FFTW wisdom lock.
Definition: FFTWMutex.c:36
void XLALFFTWWisdomUnlock(void)
Release LAL's FFTW wisdom lock.
Definition: FFTWMutex.c:52