Searched refs:capacity (Results 1 – 4 of 4) sorted by relevance
36 func NewRateLimit(capacity int64) *RateLimit {44 go ret.monitorChannels(capacity)74 func (r *RateLimit) monitorChannels(capacity int64) {103 if capacity >= usedCapacity+currentRequest.size {121 func NewCPURateLimiter(capacity int64) *CPURateLimiter {122 if capacity <= 0 {123 capacity = int64(runtime.NumCPU())125 impl := NewRateLimit(capacity)146 func NewMemoryRateLimiter(capacity int64) *MemoryRateLimiter {147 if capacity <= 0 {[all …]
584 func newSemaphore(capacity int) *semaphore {585 return &semaphore{pool: make(chan bool, capacity)}704 capacity := 0706 capacity += len(element.Dirs)708 nodes := make([]dirFullInfo, capacity)
147 size_type capacity() const { return length_; } in capacity() function
947 apk.limit(apk.capacity()); in findMainZipSections()951 apk.limit(apk.capacity()); in findMainZipSections()