Patch by Sebastian Wilhemi to fix infinite recursion in g_atomic.
[platform/upstream/glib.git] / glib / gthreadinit.h
1 /* gthreadinit.h - GLib internal thread initialization functions
2  *
3  *  Copyright (C) 2003 Sebastian Wilhelmi
4  *
5  * The Gnome Library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * The Gnome Library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
17  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  *   Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __G_THREADINIT_H__
22 #define __G_THREADINIT_H__
23
24 G_BEGIN_DECLS
25
26 /* Is called from gthread/gthread-impl.c */
27 void g_thread_init_glib (void);
28
29 /* Are called from glib/gthread.c. May not contain g_private_new calls */
30 void _g_mem_thread_init (void);
31 void _g_messages_thread_init (void);
32 void _g_convert_thread_init (void);
33 void _g_rand_thread_init (void);
34 void _g_main_thread_init (void);
35 void _g_atomic_thread_init (void);
36
37 /* Are called from glib/gthread.c. Must only contain g_private_new calls */
38 void _g_mem_thread_private_init (void);
39 void _g_messages_thread_private_init (void);
40
41 G_END_DECLS
42  
43 #endif /* __G_THREADINIT_H__ */