Home | History | Annotate | Download | only in tests

Lines Matching full:threads

109 #define THREADS 10
194 GThread *threads[THREADS];
199 for (i = 0; i < THREADS; i++)
201 threads[i] = g_thread_create (test_g_static_private_thread,
206 while (test_g_static_private_ready != THREADS)
215 for (i = 0; i < THREADS; i++)
216 g_assert (GPOINTER_TO_INT (g_thread_join (threads[i])) == i * 3);
284 GThread *threads[THREADS];
286 for (i = 0; i < THREADS; i++)
288 threads[i] = g_thread_create (test_g_static_rw_lock_thread,
293 for (i = 0; i < THREADS; i++)
295 g_thread_join (threads[i]);
322 /* Don't start before all threads are created */
347 GThread *threads[G_ONCE_THREADS];
357 threads[i] = g_thread_create (test_g_once_thread, GUINT_TO_POINTER(i%2),
363 g_thread_join (threads[i]);
387 /* Only run the test, if threads are enabled and a default thread