[gvfs] Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.
- Date: Fri, 21 Oct 2011 12:00:36 +0000 (UTC)
commit 90372ae6344398beaca9ef8c37ba2704014a5c39
Author: Kjartan Maraas <kmaraas gnome org>
Date: Fri Oct 21 13:59:29 2011 +0200
Use g_atomic_int_add instead of deprecated g_atomic_int_exchange_and_add.
https://bugzilla.gnome.org/show_bug.cgi?id=659815
client/gdaemonfileenumerator.c | 2 +-
client/gdaemonfilemonitor.c | 2 +-
daemon/gvfsftpconnection.c | 2 +-
daemon/gvfsmonitor.c | 2 +-
metadata/metatree.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/client/gdaemonfileenumerator.c b/client/gdaemonfileenumerator.c
index 46df64a..d8ca8ab 100644
--- a/client/gdaemonfileenumerator.c
+++ b/client/gdaemonfileenumerator.c
@@ -144,7 +144,7 @@ g_daemon_file_enumerator_init (GDaemonFileEnumerator *daemon)
{
char *path;
- daemon->id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ daemon->id = g_atomic_int_add (&path_counter, 1);
path = g_daemon_file_enumerator_get_object_path (daemon);
_g_dbus_register_vfs_filter (path, g_daemon_file_enumerator_dbus_filter,
diff --git a/client/gdaemonfilemonitor.c b/client/gdaemonfilemonitor.c
index 20c10f9..dea5152 100644
--- a/client/gdaemonfilemonitor.c
+++ b/client/gdaemonfilemonitor.c
@@ -86,7 +86,7 @@ g_daemon_file_monitor_init (GDaemonFileMonitor* daemon_monitor)
{
gint id;
- id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ id = g_atomic_int_add (&path_counter, 1);
daemon_monitor->object_path = g_strdup_printf (OBJ_PATH_PREFIX"%d", id);
diff --git a/daemon/gvfsftpconnection.c b/daemon/gvfsftpconnection.c
index 3df27fe..fc4047d 100644
--- a/daemon/gvfsftpconnection.c
+++ b/daemon/gvfsftpconnection.c
@@ -73,7 +73,7 @@ g_vfs_ftp_connection_new (GSocketConnectable *addr,
conn = g_slice_new0 (GVfsFtpConnection);
conn->client = g_socket_client_new ();
- conn->debug_id = g_atomic_int_exchange_and_add (&debug_id, 1);
+ conn->debug_id = g_atomic_int_add (&debug_id, 1);
conn->commands = G_IO_STREAM (g_socket_client_connect (conn->client,
addr,
cancellable,
diff --git a/daemon/gvfsmonitor.c b/daemon/gvfsmonitor.c
index 8947099..8c9b38f 100644
--- a/daemon/gvfsmonitor.c
+++ b/daemon/gvfsmonitor.c
@@ -129,7 +129,7 @@ g_vfs_monitor_init (GVfsMonitor *monitor)
G_TYPE_VFS_MONITOR,
GVfsMonitorPrivate);
- id = g_atomic_int_exchange_and_add (&path_counter, 1);
+ id = g_atomic_int_add (&path_counter, 1);
monitor->priv->object_path = g_strdup_printf (OBJ_PATH_PREFIX"%d", id);
}
diff --git a/metadata/metatree.c b/metadata/metatree.c
index d274882..3420ad0 100644
--- a/metadata/metatree.c
+++ b/metadata/metatree.c
@@ -591,7 +591,7 @@ meta_tree_lookup_by_name (const char *name,
MetaTree *
meta_tree_ref (MetaTree *tree)
{
- g_atomic_int_exchange_and_add ((int *)&tree->ref_count, 1);
+ g_atomic_int_add ((int *)&tree->ref_count, 1);
return tree;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]