Searched refs:id_gen (Results 1 – 4 of 4) 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()
113 int id_gen = 0; member177 CHECK_LT(id_gen, kMaxMutex); in allocateId()178 if ((id_gen % kL2Size) == 0) { in allocateId()179 mutex[id_gen / kL2Size] = (Mutex*)MmapOrDie(kL2Size * sizeof(Mutex), in allocateId()182 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()
101 static atomic_uintptr_t id_gen; in ThreadInit() local102 uptr id = atomic_fetch_add(&id_gen, 1, memory_order_relaxed); in ThreadInit()