- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for 4shared (0.16 sec)
-
doc/go1.17_spec.html
func(ch chan int) { ch <- ACK }(replyChan) </pre> <p> Function literals are <i>closures</i>: they may refer to variables defined in a surrounding function. Those variables are then shared between the surrounding function and the function literal, and they survive as long as they are accessible. </p> <h3 id="Primary_expressions">Primary expressions</h3> <p>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_mem.html
</p> <pre> n := 0 for i := 0; i < m; i++ { n += *shared } </pre> into: <pre> n := 0 local := *shared for i := 0; i < m; i++ { n += local } </pre> <p> provided it can be proved that <code>*shared</code> will not fault on access, because the potential added read will not affect any existing concurrent reads or writes.
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Mar 04 15:54:42 GMT 2024 - 26.6K bytes - Viewed (0) -
doc/go_spec.html
func(ch chan int) { ch <- ACK }(replyChan) </pre> <p> Function literals are <i>closures</i>: they may refer to variables defined in a surrounding function. Those variables are then shared between the surrounding function and the function literal, and they survive as long as they are accessible. </p> <h3 id="Primary_expressions">Primary expressions</h3> <p>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0)