2008-04-08 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-object-cache.c libnm-glib/nm-settings.c src/dhcp-manager/nm-dhcp-manager.c system-settings/plugins/ifcfg-fedora/plugin.c system-settings/plugins/ifcfg-suse/plugin.c system-settings/src/nm-system-config-hal-manager.c libnm-util/nm-utils.c - Remove usage of GStaticMutex since gcc-4.3 hates it and because we're not threadsafe anyway git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3548 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -425,14 +425,12 @@ system_config_interface_init (NMSystemConfigInterface *system_config_interface_c
|
||||
G_MODULE_EXPORT GObject *
|
||||
nm_system_config_factory (void)
|
||||
{
|
||||
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
|
||||
static SCPluginIfcfg *singleton = NULL;
|
||||
|
||||
g_static_mutex_lock (&mutex);
|
||||
if (!singleton)
|
||||
singleton = SC_PLUGIN_IFCFG (g_object_new (SC_TYPE_PLUGIN_IFCFG, NULL));
|
||||
g_object_ref (singleton);
|
||||
g_static_mutex_unlock (&mutex);
|
||||
else
|
||||
g_object_ref (singleton);
|
||||
|
||||
return G_OBJECT (singleton);
|
||||
}
|
||||
|
Reference in New Issue
Block a user