Searched refs:avail (Results 1 – 6 of 6) sorted by relevance
158 size_t avail = s->allocated_and_unused_.load(std::memory_order_relaxed); in AllocateImpl() local159 if (avail < bytes) { in AllocateImpl()182 avail = exact >= shard_block_size_ / 2 && exact < shard_block_size_ * 2 in AllocateImpl()185 s->free_begin_ = arena_.AllocateAligned(avail); in AllocateImpl()188 s->allocated_and_unused_.store(avail - bytes, std::memory_order_relaxed); in AllocateImpl()197 rv = s->free_begin_ + avail - bytes; in AllocateImpl()
85 const size_t avail = kBlockSize - block_offset_ - header_size; in AddRecord() local86 const size_t fragment_length = (left < avail) ? left : avail; in AddRecord()
390 size_t avail = mapped_end_ - dst_; in Append() local392 if (avail == 0) { in Append()402 size_t n = std::min(left, avail); in Append()
987 size_t avail = limit_ - dst_; in Append() local988 if (avail == 0) { in Append()1000 size_t n = (left <= avail) ? left : avail; in Append()
19 # or simply /m to use all avail cores)
9574 size_t avail; in GetThreadCount() local9581 &avail); in GetThreadCount()9583 return avail; in GetThreadCount()