annotate src/fftw-3.3.5/threads/threads.h @ 135:38d1c0e7850b

Headers for KJ/Capnp Win32
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 26 Oct 2016 13:18:45 +0100
parents 7867fa7e1b6b
children
rev   line source
cannam@127 1 /*
cannam@127 2 * Copyright (c) 2003, 2007-14 Matteo Frigo
cannam@127 3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
cannam@127 4 *
cannam@127 5 * This program is free software; you can redistribute it and/or modify
cannam@127 6 * it under the terms of the GNU General Public License as published by
cannam@127 7 * the Free Software Foundation; either version 2 of the License, or
cannam@127 8 * (at your option) any later version.
cannam@127 9 *
cannam@127 10 * This program is distributed in the hope that it will be useful,
cannam@127 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@127 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@127 13 * GNU General Public License for more details.
cannam@127 14 *
cannam@127 15 * You should have received a copy of the GNU General Public License
cannam@127 16 * along with this program; if not, write to the Free Software
cannam@127 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
cannam@127 18 *
cannam@127 19 */
cannam@127 20
cannam@127 21 #ifndef __THREADS_H__
cannam@127 22 #define __THREADS_H__
cannam@127 23
cannam@127 24 #include "ifftw.h"
cannam@127 25 #include "ct.h"
cannam@127 26 #include "hc2hc.h"
cannam@127 27
cannam@127 28 typedef struct {
cannam@127 29 int min, max, thr_num;
cannam@127 30 void *data;
cannam@127 31 } spawn_data;
cannam@127 32
cannam@127 33 typedef void *(*spawn_function) (spawn_data *);
cannam@127 34
cannam@127 35 void X(spawn_loop)(int loopmax, int nthreads,
cannam@127 36 spawn_function proc, void *data);
cannam@127 37 int X(ithreads_init)(void);
cannam@127 38 void X(threads_cleanup)(void);
cannam@127 39
cannam@127 40 /* configurations */
cannam@127 41
cannam@127 42 void X(dft_thr_vrank_geq1_register)(planner *p);
cannam@127 43 void X(rdft_thr_vrank_geq1_register)(planner *p);
cannam@127 44 void X(rdft2_thr_vrank_geq1_register)(planner *p);
cannam@127 45
cannam@127 46 ct_solver *X(mksolver_ct_threads)(size_t size, INT r, int dec,
cannam@127 47 ct_mkinferior mkcldw,
cannam@127 48 ct_force_vrecursion force_vrecursionp);
cannam@127 49 hc2hc_solver *X(mksolver_hc2hc_threads)(size_t size, INT r, hc2hc_mkinferior mkcldw);
cannam@127 50
cannam@127 51 void X(threads_conf_standard)(planner *p);
cannam@127 52 void X(threads_register_hooks)(void);
cannam@127 53 void X(threads_unregister_hooks)(void);
cannam@127 54 void X(threads_register_planner_hooks)(void);
cannam@127 55
cannam@127 56 #endif /* __THREADS_H__ */