mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Make this function thread-safe in the GLib style.
2004-10-26 Matthias Clasen <mclasen@redhat.com> * glib/gwin32.c (g_win32_get_windows_version): Make this function thread-safe in the GLib style. * glib/gthreadinit.h: * glib/gwin32.c (_g_win32_thread_init): New function to initialize the version. * glib/gthread.c (g_thread_init_glib): Call _g_win32_thread_init() from here.
This commit is contained in:
committed by
Matthias Clasen
parent
d59b22a981
commit
9b66aa4222
@@ -152,6 +152,7 @@ g_thread_init_glib (void)
|
||||
_g_mem_thread_init ();
|
||||
_g_messages_thread_init ();
|
||||
_g_atomic_thread_init ();
|
||||
_g_win32_thread_init ();
|
||||
|
||||
g_threads_got_initialized = TRUE;
|
||||
|
||||
|
Reference in New Issue
Block a user