Home
last modified time | relevance | path

Searched refs:real_box (Results 1 – 2 of 2) sorted by relevance

/third_party/glib/glib/
Dgrcbox.c246 GArcBox *real_box = (GArcBox *) (allocated + private_offset); in g_rc_box_alloc_full() local
248 real_box->mem_size = block_size; in g_rc_box_alloc_full()
252 real_box->private_offset = private_offset; in g_rc_box_alloc_full()
254 real_box->magic = G_BOX_MAGIC; in g_rc_box_alloc_full()
256 g_atomic_ref_count_init (&real_box->ref_count); in g_rc_box_alloc_full()
265 GRcBox *real_box = (GRcBox *) (allocated + private_offset); in g_rc_box_alloc_full() local
267 real_box->mem_size = block_size; in g_rc_box_alloc_full()
271 real_box->private_offset = private_offset; in g_rc_box_alloc_full()
273 real_box->magic = G_BOX_MAGIC; in g_rc_box_alloc_full()
275 g_ref_count_init (&real_box->ref_count); in g_rc_box_alloc_full()
[all …]
Dgarcbox.c291 GArcBox *real_box = G_ARC_BOX (mem_block); in gpointer() local
295 g_return_val_if_fail (real_box->magic == G_BOX_MAGIC, NULL); in gpointer()
298 g_atomic_ref_count_inc (&real_box->ref_count); in gpointer()
339 GArcBox *real_box = G_ARC_BOX (mem_block); in g_atomic_rc_box_release_full() local
343 g_return_if_fail (real_box->magic == G_BOX_MAGIC); in g_atomic_rc_box_release_full()
346 if (g_atomic_ref_count_dec (&real_box->ref_count)) in g_atomic_rc_box_release_full()
348 char *real_mem = (char *) real_box - real_box->private_offset; in g_atomic_rc_box_release_full()
373 GArcBox *real_box = G_ARC_BOX (mem_block); in g_atomic_rc_box_get_size() local
377 g_return_val_if_fail (real_box->magic == G_BOX_MAGIC, 0); in g_atomic_rc_box_get_size()
380 return real_box->mem_size; in g_atomic_rc_box_get_size()