- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for bufreaders (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
internal/dsync/drwmutex_test.go
for range numReaders { <-clocked } for range numReaders { cunlock <- true } // Wait for the goroutines to finish. for range numReaders { <-cdone } } // Borrowed from rwmutex_test.go func TestParallelReaders(t *testing.T) { defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(-1)) doTestParallelReaders(1, 4) doTestParallelReaders(3, 4) doTestParallelReaders(4, 2) }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.4K bytes - Click Count (0) -
cmd/http-tracer_test.go
// Multiple HTTP request handlers updating stats concurrently, // while background processes are reading the stats for persistence. const numWriters = 100 // Simulate many HTTP request handlers. const numReaders = 50 // Simulate background stats readers. const opsPerGoroutine = 100 var wg sync.WaitGroup for i := range numWriters { wg.Add(1) go func(writerID int) { defer wg.Done()Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.3K bytes - Click Count (0)