|
Boost-Commit : |
From: hinnant_at_[hidden]
Date: 2007-12-08 18:30:20
Author: hinnant
Date: 2007-12-08 18:30:19 EST (Sat, 08 Dec 2007)
New Revision: 41912
URL: http://svn.boost.org/trac/boost/changeset/41912
Log:
Beefed up thread::detach() per Lawrence's comments. Fixed other minor formatting glitches.
Text files modified:
sandbox/committee/LWG/thread_library.html | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-12-08 18:30:19 EST (Sat, 08 Dec 2007)
@@ -994,9 +994,11 @@
<dt>Effects:</dt>
<dd>
The thread represented by
-<code>*this</code> continues execution.
+<code>*this</code> continues execution without the current thread blocking.
+When <code>detach()</code> returns <code>*this</code> no longer represents
+the possibly continuing thread of execution.
When the thread represented by <code>*this</code> ends execution,
-the implementation shall release any owned resources.
+the implementation shall release any owned resources.
</dd>
<dt>Postconditions:</dt>
@@ -1252,12 +1254,12 @@
<p>
A mutex object facilitates protection against data races and allows thread-safe
-synchronization of data between threads. A thread obtains ownership of a mutex
-object by calling lock() and relinquishes ownership by calling unlock(). The
-thread that calls lock() for a mutex object shall call unlock(). Mutexes may be
-either recursive or non-recursive, and may grant simultaneous ownership to one
+synchronization of data between threads. A thread obtains ownership of a mutex
+object by calling <code>lock()</code> and relinquishes ownership by calling <code>unlock()</code>. The
+thread that calls <code>lock()</code> for a mutex object shall call <code>unlock()</code>. Mutexes may be
+either recursive or non-recursive, and may grant simultaneous ownership to one
or many threads. The mutex types supplied by the Standard Library
-provide exclusive ownership semantics: only one thread may own the mutex at a
+provide exclusive ownership semantics: only one thread may own the mutex at a
time. Both recursive and non-recursive mutexes are supplied.</p>
<p>
@@ -1298,7 +1300,7 @@
<dt>Effects:</dt>
<dd>
-The current thread will block until ownership of the mutex can be obtained for
+The current thread will block until ownership of the mutex can be obtained for
the current thread.</dd>
<dt>Postconditions:</dt>
@@ -1445,11 +1447,11 @@
<p>
The class <code>mutex</code> provides a non-recursive mutex with exclusive
ownership semantics. It satisfies all the Mutex requirements ([thread.mutex.requirements]).
-It shall be a standard-layout class ([class]).</p>
+It shall be a standard-layout class ([class]).</p>
<p>
If one thread owns the <code>mutex</code> object, attempts by another thread to
-acquire ownership will fail (for <code>try_lock()</code>) or block (<code>for
+acquire ownership will fail (for <code>try_lock()</code>) or block (<code>for
lock()</code>) until the first thread has released ownership with a call to
<code>unlock()</code>.</p>
@@ -4968,4 +4970,4 @@
</p>
</body>
-</html>
\ No newline at end of file
+</html>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk