Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParallelRWMutexReaders (0.17 sec)

  1. src/runtime/rwmutex_test.go

    	for i := 0; i < numReaders; i++ {
    		<-clocked
    	}
    	cunlock.Store(true)
    	// Wait for the goroutines to finish.
    	for i := 0; i < numReaders; i++ {
    		<-cdone
    	}
    }
    
    func TestParallelRWMutexReaders(t *testing.T) {
    	if GOARCH == "wasm" {
    		t.Skip("wasm has no threads yet")
    	}
    	defer GOMAXPROCS(GOMAXPROCS(-1))
    	// If runtime triggers a forced GC during this test then it will deadlock,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top