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