mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 15:38:44 +02:00
gio: Drop unnecessary volatile qualifiers from internal variables
These variables were already (correctly) accessed atomically. The `volatile` qualifier doesn’t help with that. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #600
This commit is contained in:
@@ -55,7 +55,7 @@ typedef enum
|
||||
|
||||
typedef struct
|
||||
{
|
||||
volatile gint ref_count;
|
||||
gint ref_count; /* (atomic) */
|
||||
guint id;
|
||||
GBusNameOwnerFlags flags;
|
||||
gchar *name;
|
||||
@@ -73,7 +73,7 @@ typedef struct
|
||||
guint name_acquired_subscription_id;
|
||||
guint name_lost_subscription_id;
|
||||
|
||||
volatile gboolean cancelled; /* must hold lock when reading or modifying */
|
||||
gboolean cancelled; /* must hold lock when reading or modifying */
|
||||
|
||||
gboolean needs_release;
|
||||
} Client;
|
||||
|
Reference in New Issue
Block a user