GData *global_gdata;
union {
GAtomicArray iface_entries; /* for !iface types */
+ GAtomicArray offsets;
} _prot;
GType *prerequisites;
GType supers[1]; /* flexible array */
GClassFinalizeFunc dflt_finalize;
gconstpointer dflt_data;
gpointer dflt_vtable;
- GAtomicArray offsets;
};
struct _ClassData
return NULL;
G_ATOMIC_ARRAY_DO_TRANSACTION
- (&iface_node->data->iface.offsets, guint8,
+ (&iface_node->_prot.offsets, guint8,
entry = NULL;
offsets = transaction_data;
{
guint8 *offsets;
- offsets = G_ATOMIC_ARRAY_GET_LOCKED (&iface_node->data->iface.offsets, guint8);
+ offsets = G_ATOMIC_ARRAY_GET_LOCKED (&iface_node->_prot.offsets, guint8);
if (offsets == NULL)
return TRUE;
int new_size, old_size;
int i;
- old_offsets = G_ATOMIC_ARRAY_GET_LOCKED (&iface_node->data->iface.offsets, guint8);
+ old_offsets = G_ATOMIC_ARRAY_GET_LOCKED (&iface_node->_prot.offsets, guint8);
if (old_offsets == NULL)
old_size = 0;
else
}
new_size = MAX (old_size, offset + 1);
- offsets = _g_atomic_array_copy (&iface_node->data->iface.offsets,
+ offsets = _g_atomic_array_copy (&iface_node->_prot.offsets,
0, new_size - old_size);
/* Mark new area as unused */
offsets[offset] = index + 1;
- _g_atomic_array_update (&iface_node->data->iface.offsets, offsets);
+ _g_atomic_array_update (&iface_node->_prot.offsets, offsets);
}
static void