Searched refs:semaphore (Results 1 – 1 of 1) sorted by relevance
580 type semaphore struct { struct584 func newSemaphore(capacity int) *semaphore {585 return &semaphore{pool: make(chan bool, capacity)}588 func (l *semaphore) Lock() { argument592 func (l *semaphore) Unlock() { argument601 activeRequests semaphore