Searched refs:kNumMutexes (Results 1 – 1 of 1) sorted by relevance
42 const int kNumMutexes = 1024; variable43 Mutex mutexes[kNumMutexes];62 int offset = idx * kNumMutexes / n_threads; in Thread()64 mutexes[(offset + i) % kNumMutexes].Lock(); in Thread()65 mutexes[(offset + i) % kNumMutexes].Unlock(); in Thread()