mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +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:
@@ -265,7 +265,7 @@ ensure_required_types (void)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
volatile gint refcount;
|
||||
gint refcount; /* (atomic) */
|
||||
GThread *thread;
|
||||
GMainContext *context;
|
||||
GMainLoop *loop;
|
||||
@@ -341,12 +341,12 @@ typedef enum {
|
||||
|
||||
struct GDBusWorker
|
||||
{
|
||||
volatile gint ref_count;
|
||||
gint ref_count; /* (atomic) */
|
||||
|
||||
SharedThreadData *shared_thread_data;
|
||||
|
||||
/* really a boolean, but GLib 2.28 lacks atomic boolean ops */
|
||||
volatile gint stopped;
|
||||
gint stopped; /* (atomic) */
|
||||
|
||||
/* TODO: frozen (e.g. G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING) currently
|
||||
* only affects messages received from the other peer (since GDBusServer is the
|
||||
@@ -1941,11 +1941,11 @@ _g_dbus_debug_print_unlock (void)
|
||||
void
|
||||
_g_dbus_initialize (void)
|
||||
{
|
||||
static volatile gsize initialized = 0;
|
||||
static gsize initialized = 0;
|
||||
|
||||
if (g_once_init_enter (&initialized))
|
||||
{
|
||||
volatile GQuark g_dbus_error_domain;
|
||||
GQuark g_dbus_error_domain;
|
||||
const gchar *debug;
|
||||
|
||||
g_dbus_error_domain = G_DBUS_ERROR;
|
||||
|
Reference in New Issue
Block a user