]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add new sync.[RW]Mutex methods
authorJeremy Faller <jeremy@golang.org>
Thu, 2 Dec 2021 18:33:18 +0000 (13:33 -0500)
committerJeremy Faller <jeremy@golang.org>
Mon, 6 Dec 2021 21:14:21 +0000 (21:14 +0000)
CL 319769

Updates #47694

Change-Id: I9655af0d249926617645c33617d53b73f985aa19
Reviewed-on: https://go-review.googlesource.com/c/go/+/368797
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 7a4869cf6a153c300f4249bfb86eed3bebabaf7f..77c26bc2576589a1e5d24ea35728250abe7ad7cb 100644 (file)
@@ -740,7 +740,11 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="sync"><dt><a href="/pkg/sync/">sync</a></dt>
   <dd>
     <p><!-- CL 319769 -->
-      TODO: <a href="https://golang.org/cl/319769">https://golang.org/cl/319769</a>: add Mutex.TryLock, RWMutex.TryLock, RWMutex.TryRLock
+      The new methods
+      <a href="/pkg/sync#Mutex.TryLock"><code>Mutex.TryLock</code></a>,
+      <a href="/pkg/sync#RWMutex.TryLock"><code>RWMutex.TryLock</code></a>, and
+      <a href="/pkg/sync#RWMutex.TryRLock"><code>RWMutex.TryRLock</code></a>,
+      will acquire the lock if it is not currently held.
     </p>
   </dd>
 </dl><!-- sync -->