|
1 /* gthreadinit.h - GLib internal thread initialization functions |
|
2 * |
|
3 * Copyright (C) 2003 Sebastian Wilhelmi |
|
4 * Portions copyright (c) 2006 Nokia Corporation. All rights reserved. |
|
5 * |
|
6 * The Gnome Library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Lesser General Public License as |
|
8 * published by the Free Software Foundation; either version 2 of the |
|
9 * License, or (at your option) any later version. |
|
10 * |
|
11 * The Gnome Library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Lesser General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public |
|
17 * License along with the Gnome Library; see the file COPYING.LIB. If not, |
|
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
19 * Boston, MA 02111-1307, USA. |
|
20 */ |
|
21 |
|
22 #ifndef __G_THREADINIT_H__ |
|
23 #define __G_THREADINIT_H__ |
|
24 |
|
25 G_BEGIN_DECLS |
|
26 |
|
27 /* Is called from gthread/gthread-impl.c */ |
|
28 IMPORT_C void g_thread_init_glib (void); |
|
29 |
|
30 /* base initializers, may only use g_mutex_new(), g_cond_new() */ |
|
31 void _g_mem_thread_init_noprivate_nomessage (void) G_GNUC_INTERNAL; |
|
32 /* initializers that may also use g_private_new() */ |
|
33 void _g_slice_thread_init_nomessage (void) G_GNUC_INTERNAL; |
|
34 void _g_messages_thread_init_nomessage (void) G_GNUC_INTERNAL; |
|
35 |
|
36 /* full fledged initializersa */ |
|
37 void _g_convert_thread_init (void) G_GNUC_INTERNAL; |
|
38 void _g_rand_thread_init (void) G_GNUC_INTERNAL; |
|
39 void _g_main_thread_init (void) G_GNUC_INTERNAL; |
|
40 void _g_atomic_thread_init (void) G_GNUC_INTERNAL; |
|
41 void _g_utils_thread_init (void) G_GNUC_INTERNAL; |
|
42 #ifdef G_OS_WIN32 |
|
43 void _g_win32_thread_init (void) G_GNUC_INTERNAL; |
|
44 #endif |
|
45 |
|
46 G_END_DECLS |
|
47 |
|
48 #endif /* __G_THREADINIT_H__ */ |