Lines Matching refs:tid
101 for ( int tid = 0; tid < MAX_N_WORKER_THREADS; ++tid ) {
102 t_args[tid].nsteps = nsteps;
103 t_args[tid].shared_var = &shared_var;
104 t_args[tid].lock = &lock;
107 ret = pthread_create( threads + tid, nullptr, func, &t_args[tid] );
116 for ( int tid = 0; tid < n_worker_threads; ++tid ) {
117 pthread_join( threads[tid], nullptr );