Lines Matching refs:closure
161 test_closure (GClosure *closure)
163 /* try to produce high contention in closure->ref_count */
166 g_closure_ref (closure);
167 g_closure_sink (closure); /* NOP */
169 g_closure_unref (closure);
175 GClosure *closure = data;
179 test_closure (closure);
193 GClosure *closure = data;
197 test_closure (closure);
222 GClosure *closure)
225 g_assert (closure->ref_count == 0);
240 GClosure *closure;
250 closure = g_cclosure_new (G_CALLBACK (test_signal_handler), TEST_POINTER2, destroy_data);
252 g_signal_connect_closure (object, "test-signal1", closure, FALSE);
253 g_signal_connect_closure (object, "test-signal2", closure, FALSE);
257 thread1 = g_thread_create (thread1_main, closure, TRUE, NULL);
258 thread2 = g_thread_create (thread2_main, closure, TRUE, NULL);