Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRaceTLS (0.1 sec)

  1. src/runtime/race/testdata/mop_test.go

    	<-c
    }
    
    func TestRaceEmptyInterface2(t *testing.T) {
    	c := make(chan bool)
    	var x any
    	go func() {
    		x = &Point{}
    		c <- true
    	}()
    	_ = x
    	<-c
    }
    
    func TestRaceTLS(t *testing.T) {
    	comm := make(chan *int)
    	done := make(chan bool, 2)
    	go func() {
    		var x int
    		comm <- &x
    		x = 1
    		x = *(<-comm)
    		done <- true
    	}()
    	go func() {
    		p := <-comm
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 16:46:25 UTC 2023
    - 28.9K bytes
    - Viewed (0)
Back to top