Searched refs:this_thread_index (Results 1 – 3 of 3) sorted by relevance
114 uptr this_thread_index = __sync_fetch_and_add( in AdvancedIncrementerThread() local118 if (this_thread_index + 1 < kThreadCount) { in AdvancedIncrementerThread()120 pthread_create(&callback_argument->thread_ids[this_thread_index + 1], in AdvancedIncrementerThread()132 __sync_fetch_and_add(&callback_argument->counters[this_thread_index], 1); in AdvancedIncrementerThread()
113 uptr this_thread_index = __sync_fetch_and_add( in AdvancedIncrementerThread() local117 if (this_thread_index + 1 < kThreadCount) { in AdvancedIncrementerThread()119 pthread_create(&callback_argument->thread_ids[this_thread_index + 1], in AdvancedIncrementerThread()131 __sync_fetch_and_add(&callback_argument->counters[this_thread_index], 1); in AdvancedIncrementerThread()
195 const int this_thread_index = s_thread_index++; in thread_func() local198 printf("thread %d id: ", this_thread_index); in thread_func()209 int sleep_seconds = 2 * (this_thread_index - 1); in thread_func()