2003-02-14 15:08:46 +00:00
|
|
|
/* gthreadinit.h - GLib internal thread initialization functions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Sebastian Wilhelmi
|
|
|
|
*
|
|
|
|
* The Gnome Library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* The Gnome Library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with the Gnome Library; see the file COPYING.LIB. If not,
|
|
|
|
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __G_THREADINIT_H__
|
|
|
|
#define __G_THREADINIT_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* Is called from gthread/gthread-impl.c */
|
|
|
|
void g_thread_init_glib (void);
|
|
|
|
|
|
|
|
/* Are called from glib/gthread.c. May not contain g_private_new calls */
|
Add a G_GNUC_INTERNAL macro to mark function declarations as internal and
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
declarations as internal and avoid PLT indirections for
them. (#145465, Arjan van de Ven)
* glib/gunicodeprivate.h:
* glib/gthreadinit.h:
* glib/gmessages.h:
* glib/gdebug.h:
* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
_g_messages_thread_init(), _g_convert_thread_init(),
_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
_g_mem_thread_private_init(), _g_messages_thread_private_init(),
_g_utf8_normalize_wc() and _g_unichar_combining_class().
* glib/gatomic.c: Include gthreadinit.h here to see the declaration
for _g_atomic_thread_init().
2004-08-02 15:34:30 +00:00
|
|
|
void _g_mem_thread_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_messages_thread_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_convert_thread_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_rand_thread_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_main_thread_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_atomic_thread_init (void) G_GNUC_INTERNAL;
|
2004-10-26 14:24:27 +00:00
|
|
|
#ifdef G_OS_WIN32
|
2004-10-26 14:04:52 +00:00
|
|
|
void _g_win32_thread_init (void) G_GNUC_INTERNAL;
|
2004-10-26 14:24:27 +00:00
|
|
|
#endif
|
2003-02-14 15:08:46 +00:00
|
|
|
|
|
|
|
/* Are called from glib/gthread.c. Must only contain g_private_new calls */
|
Add a G_GNUC_INTERNAL macro to mark function declarations as internal and
2004-08-02 Matthias Clasen <mclasen@redhat.com>
* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
declarations as internal and avoid PLT indirections for
them. (#145465, Arjan van de Ven)
* glib/gunicodeprivate.h:
* glib/gthreadinit.h:
* glib/gmessages.h:
* glib/gdebug.h:
* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
_g_messages_thread_init(), _g_convert_thread_init(),
_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
_g_mem_thread_private_init(), _g_messages_thread_private_init(),
_g_utf8_normalize_wc() and _g_unichar_combining_class().
* glib/gatomic.c: Include gthreadinit.h here to see the declaration
for _g_atomic_thread_init().
2004-08-02 15:34:30 +00:00
|
|
|
void _g_mem_thread_private_init (void) G_GNUC_INTERNAL;
|
|
|
|
void _g_messages_thread_private_init (void) G_GNUC_INTERNAL;
|
2003-02-14 15:08:46 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __G_THREADINIT_H__ */
|