mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
doc: document additional atomic.Value methods
For #44513. Fixes #46022. Change-Id: Id1d87fbd4034461953760ce77201f87ed723ff88 Reviewed-on: https://go-review.googlesource.com/c/go/+/319549 Trust: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
3c656445f1
commit
217f5dd496
|
@ -507,7 +507,9 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
<dl id="sync/atomic"><dt><a href="/pkg/sync/atomic/">sync/atomic</a></dt>
|
<dl id="sync/atomic"><dt><a href="/pkg/sync/atomic/">sync/atomic</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 241678 -->
|
<p><!-- CL 241678 -->
|
||||||
TODO: <a href="https://golang.org/cl/241678">https://golang.org/cl/241678</a>: add (*Value).Swap and (*Value).CompareAndSwap
|
<code>atomic.Value</code> now has <a href="/pkg/sync/atomic/#Value.Swap"><code>Swap</code></a> and
|
||||||
|
<a href="/pkg/sync/atomic/#Value.CompareAndSwap"><code>CompareAndSwap</code></a> methods that provide
|
||||||
|
additional atomic operations.
|
||||||
</p>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- sync/atomic -->
|
</dl><!-- sync/atomic -->
|
||||||
|
|
Loading…
Reference in a new issue