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:
@@ -121,14 +121,11 @@ get_leasefile_for_iface (const char * iface)
|
||||
NMDHCPManager *
|
||||
nm_dhcp_manager_get (void)
|
||||
{
|
||||
static GStaticMutex mutex = G_STATIC_MUTEX_INIT;
|
||||
static NMDHCPManager *singleton = NULL;
|
||||
|
||||
g_static_mutex_lock (&mutex);
|
||||
if (!singleton)
|
||||
singleton = nm_dhcp_manager_new ();
|
||||
g_object_ref (singleton);
|
||||
g_static_mutex_unlock (&mutex);
|
||||
|
||||
return singleton;
|
||||
}
|
||||
|
Reference in New Issue
Block a user