|
Boost-Commit : |
From: hinnant_at_[hidden]
Date: 2007-11-30 11:19:27
Author: hinnant
Date: 2007-11-30 11:19:27 EST (Fri, 30 Nov 2007)
New Revision: 41495
URL: http://svn.boost.org/trac/boost/changeset/41495
Log:
updated this_thread::get_id returns clause and comments after defer_lock_t et al
Text files modified:
sandbox/committee/LWG/thread_library.html | 22 +++++++---------------
1 files changed, 7 insertions(+), 15 deletions(-)
Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-11-30 11:19:27 EST (Fri, 30 Nov 2007)
@@ -153,7 +153,7 @@
<li>Use HTML entities rather than non-ASCII characters.
</li>
-<li>CSS is used on ly in the <style> head block.
+<li>CSS is used only in the <style> head block.
</li>
<li>Non-normative parameter names use <var> phrase markup.
@@ -990,17 +990,9 @@
<dl>
<dt>Returns:</dt>
<dd>
-If the current thread is joinable,
-returns an object of type <code>thread::id</code>
-that uniquely identifies the current thread
-and does not compare equal to a default constructed <code>thread::id</code>,
-else returns
-a default constructed <code>thread::id</code>
-<b>[Crowl:
-Why does <code>this_thread::get_id()</code>
-depend on <code>is_joinable()</code>?
-The <code>id</code> values will be preserved elsewhere.
-]</b>
+An object of type <code>thread::id</code> that uniquely identifies
+the current thread of execution. The object returned shall not compare
+equal to a default constructed <code>thread::id</code>.
</dd>
<dt>Throws:</dt>
@@ -1646,9 +1638,9 @@
<blockquote>
<pre><code>
-struct defer_lock_t {}; // obtain the lock sometime after construction
-struct try_to_lock_t {}; // do not wait to obtain the lock
-struct adopt_lock_t {}; //
+struct defer_lock_t {}; // do not obtain the lock
+struct try_to_lock_t {}; // try to obtain the lock without blocking
+struct adopt_lock_t {}; // assume the lock is already obtained and take ownership of it
extern const defer_lock_t defer_lock;
extern const try_to_lock_t try_to_lock;
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