Searched refs:mutexes (Results 1 - 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
H A D | training_op_helpers.cc | 34 // MaybeLockVariableInputMutexesInOrder is a helper function to acquire mutexes 35 // in address order to mitigate deadlock. Returns a vector of acquired mutexes. 38 // mutexes for invalid variable references; in all usages this is followed by 46 std::vector<mutex*> mutexes; local 51 if (std::find(mutexes.begin(), mutexes.end(), mutex) == mutexes.end()) { 52 acquire_order.push_back(mutexes.size()); 53 mutexes.push_back(mutex); 57 [&mutexes](in [all...] |
/external/ltp/testcases/realtime/func/pi-tests/ |
H A D | sbrk_mutex.c | 23 * Create NUM_THREADS to walk through an array of malloc'd pthread mutexes. 34 * 2006-03-01: Changed mutexes to PTHREAD_MUTEX_ROBUST_NP type -Sripathi Kodi 55 static pthread_mutex_t *mutexes[NUM_MUTEXES]; variable 85 pthread_mutex_unlock(mutexes[i - NUM_CONCURRENT_LOCKS]); 89 pthread_mutex_lock(mutexes[i]); 122 /* malloc and initialize the mutexes */ 123 printf("allocating and initializing %d mutexes\n", NUM_MUTEXES); 125 if (!(mutexes[m] = malloc(sizeof(pthread_mutex_t)))) { 128 if ((ret = pthread_mutex_init(mutexes[m], &mutexattr))) { 132 printf("mutexes allocate [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_report.cc | 59 , mutexes(MBlockReportMutex) 141 Printf(" (mutexes:"); 261 if (rep->mutexes.Size()) 262 return rep->mutexes[0]->stack; 301 for (uptr i = 0; i < rep->mutexes.Size(); i++) 302 PrintMutexShortWithAddress(rep->mutexes[i], " => "); 303 PrintMutexShort(rep->mutexes[0], "\n\n"); 304 CHECK_GT(rep->mutexes.Size(), 0U); 305 CHECK_EQ(rep->mutexes.Size() * (flags()->second_deadlock_stack ? 2 : 1), 307 for (uptr i = 0; i < rep->mutexes [all...] |
H A D | tsan_report.h | 110 Vector<ReportMutex*> mutexes; member in class:__tsan::ReportDesc
|
H A D | tsan_debugging.cc | 75 *mutex_count = rep->mutexes.Size(); 131 CHECK_LT(idx, rep->mutexes.Size()); 132 ReportMutex *mutex = rep->mutexes[idx];
|
H A D | tsan_rtl_report.cc | 259 for (uptr i = 0; i < rep_->mutexes.Size(); i++) { 260 if (rep_->mutexes[i]->id == s->uid) 265 rep_->mutexes.PushBack(rm); 292 for (uptr i = 0; i < rep_->mutexes.Size(); i++) { 293 if (rep_->mutexes[i]->id == id) 298 rep_->mutexes.PushBack(rm); 585 // at best it will cause deadlocks on internal mutexes.
|
/external/compiler-rt/lib/tsan/benchmarks/ |
H A D | vts_many_threads_bench.cc | 43 Mutex mutexes[kNumMutexes]; variable 64 mutexes[(offset + i) % kNumMutexes].Lock(); 65 mutexes[(offset + i) % kNumMutexes].Unlock();
|
/external/mesa3d/docs/specs/ |
H A D | MESA_multithread_makecurrent.spec | 74 mutexes.
|
Completed in 431 milliseconds