Lines Matching refs:sources
32 shuffle (GSource **sources, int num) in shuffle() argument
41 tmp = sources[a]; in shuffle()
42 sources[a] = sources[b]; in shuffle()
43 sources[b] = tmp; in shuffle()
74 GSource **sources; in main() local
79 sources = g_new0 (GSource *, NSOURCES); in main()
84 sources[i] = g_idle_source_new (); in main()
85 g_source_set_callback (sources[i], callback, NULL, NULL); in main()
86 g_source_attach (sources[i], context); in main()
95 … g_assert (sources[i] == g_main_context_find_source_by_id (context, g_source_get_id (sources[i]))); in main()
101 shuffle (sources, NSOURCES); in main()
106 g_source_destroy (sources[i]); in main()
107 g_source_unref (sources[i]); in main()
119 sources[i] = g_idle_source_new (); in main()
120 g_source_set_callback (sources[i], callback, NULL, NULL); in main()
121 g_source_set_priority (sources[i], i % 100); in main()
122 g_source_attach (sources[i], context); in main()
131 … g_assert (sources[i] == g_main_context_find_source_by_id (context, g_source_get_id (sources[i]))); in main()
137 shuffle (sources, NSOURCES); in main()
142 g_source_destroy (sources[i]); in main()
143 g_source_unref (sources[i]); in main()
157 sources[i] = g_idle_source_new (); in main()
158 g_source_set_callback (sources[i], callback, NULL, NULL); in main()
159 g_thread_pool_push (pool, sources[i], &error); in main()
172 g_thread_pool_push (pool, sources[i], &error); in main()
183 g_free (sources); in main()