Searched refs:semaphore (Results 1 – 1 of 1) sorted by relevance
588 type semaphore struct { struct592 func newSemaphore(capacity int) *semaphore {593 return &semaphore{pool: make(chan bool, capacity)}596 func (l *semaphore) Lock() { argument600 func (l *semaphore) Unlock() { argument609 activeRequests semaphore