- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRaceSelect5 (0.12 sec)
-
src/runtime/race/testdata/select_test.go
// is not. // Select must (unconditionally) choose the non-synchronized variable // thus causing exactly one race. // Currently this test doesn't look like it accomplishes // this goal. func TestRaceSelect5(t *testing.T) { done := make(chan bool, 1) c1 := make(chan bool, 1) c2 := make(chan bool) var x, y int go func() { select { case c1 <- true: x = 1 case c2 <- true: y = 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 05:25:54 UTC 2020 - 4.1K bytes - Viewed (0)