Home
last modified time | relevance | path

Searched refs:id_gen (Results 1 – 2 of 2) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_deadlock_detector2.cc114 int id_gen; member
126 id_gen = 0; in DD()
182 CHECK_LT(id_gen, kMaxMutex); in allocateId()
183 if ((id_gen % kL2Size) == 0) { in allocateId()
184 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()
187 id = id_gen++; in allocateId()
/external/compiler-rt/lib/tsan/dd/
Ddd_rtl.cc101 static atomic_uintptr_t id_gen; in ThreadInit() local
102 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()