- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceChanMutex (0.16 sec)
-
src/runtime/race/testdata/chan_test.go
} func TestRaceChanCloseSend(t *testing.T) { compl := make(chan bool, 1) c := make(chan int, 10) go func() { close(c) compl <- true }() c <- 0 <-compl } func TestNoRaceChanMutex(t *testing.T) { done := make(chan struct{}) mtx := make(chan struct{}, 1) data := 0 _ = data go func() { mtx <- struct{}{} data = 42 <-mtx done <- struct{}{} }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0)