Searched refs:waiter (Results 1 – 3 of 3) sorted by relevance
/build/soong/ui/build/ |
D | proc_sync_test.go | 57 func newCountWaiter(count int) (waiter *countWaiter) { 209 waiter := newCountWaiter(0) 210 err := lockSynchronous(lock, waiter, noopLogger) 214 if waiter.numWaitsElapsed != 0 { 215 t.Fatalf("Incorrect number of waits elapsed; expected 0, got %v", waiter.numWaitsElapsed) 221 waiter := newCountWaiter(2) 222 err := lockSynchronous(lock, waiter, noopLogger) 226 if waiter.numWaitsElapsed != 2 { 227 t.Fatalf("Incorrect number of waits elapsed; expected 2, got %v", waiter.numWaitsElapsed) 233 waiter := newCountWaiter(2) [all …]
|
D | proc_sync.go | 74 func lockSynchronous(lock lockable, waiter waiter, logger logger.Logger) (err error) { argument 88 done, description := waiter.checkDeadline() 98 lock.description(), waiter.summarize()) 100 waiter.wait() 118 type waiter interface { interface 131 var _ waiter = (*sleepWaiter)(nil) 133 func newSleepWaiter(interval time.Duration, duration time.Duration) (waiter *sleepWaiter) {
|
/build/soong/android/ |
D | onceper.go | 52 waiter := make(onceValueWaiter) 53 if v, loaded := once.values.LoadOrStore(key, waiter); loaded { 63 close(waiter)
|