reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/openmp/runtime/src/kmp_tasking.cpp
 2826         if (victim_tid == -2) { // haven't stolen anything yet
 2827           victim_tid = threads_data[tid].td.td_deque_last_stolen;
 2828           if (victim_tid !=
 2830             other_thread = threads_data[victim_tid].td.td_thr;
 2832         if (victim_tid != -1) { // found last victim
 2840             victim_tid = __kmp_get_random(thread) % (nthreads - 1);
 2841             if (victim_tid >= tid) {
 2842               ++victim_tid; // Adjusts random distribution to exclude self
 2845             other_thread = threads_data[victim_tid].td.td_thr;
 2879           if (threads_data[tid].td.td_deque_last_stolen != victim_tid) {
 2880             threads_data[tid].td.td_deque_last_stolen = victim_tid;
 2888           victim_tid = -2; // no successful victim found