5 * ***** BEGIN GPL LICENSE BLOCK *****
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software Foundation,
19 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * The Original Code is Copyright (C) 2006 Blender Foundation.
22 * All rights reserved.
24 * The Original Code is: all of this file.
26 * Contributor(s): none yet.
28 * ***** END GPL LICENSE BLOCK *****
35 void BLI_init_threads (ListBase *threadbase, void *(*do_thread)(void *), int tot);
36 int BLI_available_threads(ListBase *threadbase);
37 int BLI_available_thread_index(ListBase *threadbase);
38 void BLI_insert_thread (ListBase *threadbase, void *callerdata);
39 void BLI_remove_thread (ListBase *threadbase, void *callerdata);
40 void BLI_end_threads (ListBase *threadbase);
42 void BLI_lock_thread (void);
43 void BLI_unlock_thread (void);
45 /* threadsafe version of MEM_malloc and friends */
46 void *MEM_mallocT(int len, char *name);
47 void *MEM_callocT(int len, char *name);
48 void *MEM_mapallocT(int len, char *name);
49 void MEM_freeT(void *poin);