Home
last modified time | relevance | path

Searched refs:FreeSlots (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/support/
H A DThreading.cpp42 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()
H A DThreading.h39 std::size_t FreeSlots; variable
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp89 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()
H A Dguarded_pool_allocator.h212 size_t *FreeSlots = nullptr; variable