Searched refs:id_gen (Results 1 – 2 of 2) sorted by relevance
114 int id_gen; member126 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()
101 static atomic_uintptr_t id_gen; in ThreadInit() local102 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()