Searched refs:id_gen (Results 1 – 2 of 2) sorted by relevance
113 int id_gen = 0; member175 CHECK_LT(id_gen, kMaxMutex); in allocateId()176 if ((id_gen % kL2Size) == 0) { in allocateId()177 mutex[id_gen / kL2Size] = (MutexState *)MmapOrDie( in allocateId()180 id = id_gen++; in allocateId()
100 static atomic_uintptr_t id_gen; in ThreadInit() local101 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()