Skip to content

Commit e340a6e

Browse files
jensmaurerzygoloid
authored andcommitted
[thread.mutex.requirements] Harmonize wording for try_lock.
1 parent 122a892 commit e340a6e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

source/threads.tex

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249

250250
\pnum
251251
\returns
252-
\tcode{true} if the lock was acquired, \tcode{false} otherwise.
252+
\tcode{true} if the lock was acquired, otherwise \tcode{false}.
253253
\end{itemdescr}
254254

255255
\rSec3[thread.req.lockable.timed]{\oldconcept{TimedLockable} requirements}
@@ -279,7 +279,7 @@
279279

280280
\pnum
281281
\returns
282-
\tcode{true} if the lock was acquired, \tcode{false} otherwise.
282+
\tcode{true} if the lock was acquired, otherwise \tcode{false}.
283283
\end{itemdescr}
284284

285285
\begin{itemdecl}
@@ -300,7 +300,7 @@
300300

301301
\pnum
302302
\returns
303-
\tcode{true} if the lock was acquired, \tcode{false} otherwise.
303+
\tcode{true} if the lock was acquired, otherwise \tcode{false}.
304304
\end{itemdescr}
305305

306306
\rSec1[thread.stoptoken]{Stop tokens}
@@ -2100,8 +2100,7 @@
21002100

21012101
\pnum
21022102
\returns
2103-
\tcode{true} if ownership of the mutex was obtained for the calling
2104-
thread, otherwise \tcode{false}.
2103+
\tcode{true} if ownership was obtained, otherwise \tcode{false}.
21052104

21062105
\pnum
21072106
\sync
@@ -2580,8 +2579,7 @@
25802579

25812580
\pnum
25822581
\returns
2583-
\tcode{true} if the shared ownership lock was acquired, \tcode{false}
2584-
otherwise.
2582+
\tcode{true} if the shared lock was acquired, otherwise \tcode{false}.
25852583

25862584
\pnum
25872585
\sync
@@ -2691,7 +2689,7 @@
26912689

26922690
\pnum
26932691
\returns
2694-
\tcode{true} if the shared lock was acquired, \tcode{false} otherwise.
2692+
\tcode{true} if the shared lock was acquired, otherwise \tcode{false}.
26952693

26962694
\pnum
26972695
\sync
@@ -2734,7 +2732,7 @@
27342732

27352733
\pnum
27362734
\returns
2737-
\tcode{true} if the shared lock was acquired, \tcode{false} otherwise.
2735+
\tcode{true} if the shared lock was acquired, otherwise \tcode{false}.
27382736

27392737
\pnum
27402738
\sync

0 commit comments

Comments
 (0)