mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 02:48:54 +02:00
Deprecate g_thread_init()
Move the last few things that needed thread-safe initialisation to a global ctor. https://bugzilla.gnome.org/show_bug.cgi?id=660744
This commit is contained in:
38
glib/glib-init.h
Normal file
38
glib/glib-init.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright © 2011 Canonical Limited
|
||||
*
|
||||
* This 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
|
||||
* licence, or (at your option) any later version.
|
||||
*
|
||||
* This 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 this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*
|
||||
* Author: Ryan Lortie <desrt@desrt.ca>
|
||||
*/
|
||||
|
||||
#ifndef __GLIB_INIT_H__
|
||||
#define __GLIB_INIT_H__
|
||||
|
||||
#include "gmessages.h"
|
||||
|
||||
G_GNUC_INTERNAL extern GLogLevelFlags g_log_always_fatal;
|
||||
G_GNUC_INTERNAL extern GLogLevelFlags g_log_msg_prefix;
|
||||
GLIB_VAR gboolean g_mem_gc_friendly;
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
|
||||
G_GNUC_INTERNAL void g_thread_win32_init (void);
|
||||
G_GNUC_INTERNAL extern HMODULE glib_dll;
|
||||
#endif
|
||||
|
||||
#endif /* __GLIB_INIT_H__ */
|
Reference in New Issue
Block a user