Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. doc/go_mem.html

    be observed by <code>main</code>, since there are no synchronization
    events between the two threads.  The loop in <code>main</code> is not
    guaranteed to finish.
    </p>
    
    <p>
    There are subtler variants on this theme, such as this program.
    </p>
    
    <pre>
    type T struct {
    	msg string
    }
    
    var g *T
    
    func setup() {
    	t := new(T)
    	t.msg = "hello, world"
    	g = t
    }
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top