Lines Matching refs:t
59 int t = rand() % N_THREADS; in thread_func() local
60 g_mutex_lock (tdata[t].to_free_mutex); in thread_func()
61 tdata[t].to_free[tdata[t].n_to_free] = mem; in thread_func()
62 tdata[t].bytes_to_free[tdata[t].n_to_free] = bytes; in thread_func()
63 tdata[t].n_to_free++; in thread_func()
64 g_mutex_unlock (tdata[t].to_free_mutex); in thread_func()
92 int t; in main() local
96 for (t = 0; t < N_THREADS; t++) in main()
98 tdata[t].thread_id = t + 1; in main()
99 tdata[t].n_to_free = 0; in main()
100 tdata[t].n_freed = 0; in main()
101 tdata[t].to_free_mutex = g_mutex_new(); in main()
104 for (t = 0; t < N_THREADS; t++) in main()
106 tdata[t].gthread = g_thread_create (thread_func, &tdata[t], TRUE, NULL); in main()
107 g_assert (tdata[t].gthread != NULL); in main()
109 for (t = 0; t < N_THREADS; t++) in main()
111 g_thread_join (tdata[t].gthread); in main()
114 for (t = 0; t < N_THREADS; t++) in main()
117 tdata[t].thread_id, tdata[t].n_freed, tdata[t].n_to_free); in main()