Searched refs:FreeSlots (Results 1 – 4 of 4) sorted by relevance
42 Semaphore::Semaphore(std::size_t MaxLocks) : FreeSlots(MaxLocks) {} in Semaphore()46 if (FreeSlots > 0) { in try_lock()47 --FreeSlots; in try_lock()59 SlotsChanged.wait(Lock, [&]() { return FreeSlots > 0; }); in lock()60 --FreeSlots; in lock()66 ++FreeSlots; in unlock()
39 std::size_t FreeSlots; variable
89 State.MaxSimultaneousAllocations * sizeof(*FreeSlots), PageSize); in init()90 FreeSlots = in init()146 if (FreeSlots) { in uninitTestOnly()147 unmap(FreeSlots, in uninitTestOnly()148 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly()150 FreeSlots = nullptr; in uninitTestOnly()343 size_t SlotIndex = FreeSlots[ReservedIndex]; in reserveSlot()344 FreeSlots[ReservedIndex] = FreeSlots[--FreeSlotsLength]; in reserveSlot()350 FreeSlots[FreeSlotsLength++] = SlotIndex; in freeSlot()
212 size_t *FreeSlots = nullptr; variable