Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Breiding (0.2 sec)

  1. doc/go_mem.html

    <p>
    That is, the compiler must not rewrite the program into this one:
    </p>
    
    <pre>
    *p = 2
    if !cond {
    	*p = 1
    }
    </pre>
    
    <p>
    If <code>cond</code> is false and another goroutine is reading <code>*p</code>,
    then in the original program, the other goroutine can only observe any prior value of <code>*p</code> and <code>1</code>.
    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