Lines Matching refs:ref_count
209 object->ref_count); in debug_objects_foreach()
687 object->ref_count = 1; in g_object_init()
786 g_return_if_fail (object->ref_count > 0); in g_object_run_dispose()
810 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_freeze_notify()
833 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_notify()
878 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_thaw_notify()
1808 g_return_val_if_fail (object->ref_count > 0, object); in g_object_connect()
1892 g_return_if_fail (object->ref_count > 0); in g_object_disconnect()
1973 g_return_if_fail (object->ref_count >= 1); in g_object_weak_ref()
2143 g_return_val_if_fail (object->ref_count >= 1, object); in g_object_ref_sink()
2168 g_return_if_fail (object->ref_count >= 1); in g_object_force_floating()
2244 g_return_if_fail (object->ref_count >= 1); in g_object_add_toggle_ref()
2340 g_return_val_if_fail (object->ref_count > 0, NULL); in g_object_ref()
2348 old_val = g_atomic_int_exchange_and_add ((int *)&object->ref_count, 1); in g_object_ref()
2371 g_return_if_fail (object->ref_count > 0); in g_object_unref()
2380 old_ref = g_atomic_int_get (&object->ref_count); in g_object_unref()
2383 if (!g_atomic_int_compare_and_exchange ((int *)&object->ref_count, old_ref, old_ref - 1)) in g_object_unref()
2397 old_ref = g_atomic_int_get ((int *)&object->ref_count); in g_object_unref()
2400 if (!g_atomic_int_compare_and_exchange ((int *)&object->ref_count, old_ref, old_ref - 1)) in g_object_unref()
2416 is_zero = g_atomic_int_dec_and_test ((int *)&object->ref_count); in g_object_unref()
3023 g_return_if_fail (object->ref_count > 0); /* this doesn't work on finalizing objects */ in g_object_watch_closure()
3067 …g_return_val_if_fail (object->ref_count > 0, NULL); /* this doesn't work on finalizing objects… in g_closure_new_object()
3095 …g_return_val_if_fail (object->ref_count > 0, NULL); /* this doesn't work on finalizing objects… in g_cclosure_new_object()
3124 …g_return_val_if_fail (object->ref_count > 0, NULL); /* this doesn't work on finalizing objects… in g_cclosure_new_object_swap()