|
Boost-Commit : |
From: hinnant_at_[hidden]
Date: 2007-12-07 15:27:12
Author: hinnant
Date: 2007-12-07 15:27:12 EST (Fri, 07 Dec 2007)
New Revision: 41836
URL: http://svn.boost.org/trac/boost/changeset/41836
Log:
thread constructor throws bad_alloc. Note added to ~thread. Date range changed to plus or minus 292 years.
Text files modified:
sandbox/committee/LWG/thread_library.html | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-12-07 15:27:12 EST (Fri, 07 Dec 2007)
@@ -793,7 +793,7 @@
<dt>Throws:</dt>
<dd>
-<code>system_error</code> if unable to start the new thread.
+<code>system_error</code> or <code>bad_alloc</code> if unable to start the new thread.
</dd>
</dl>
</blockquote>
@@ -844,6 +844,16 @@
otherwise no effects.
</dd>
+<p>
+[<i>Note:</i> destroying a <code>joinable thread</code> can be unsafe if the
+thread accesses objects or the standard library
+unless the thread
+performs explicit synchronization to ensure that it does not access
+the objects or the standard library past their respective lifetimes.
+Terminating the process with <code>_exit</code> or <code>quick_exit</code> removes some of these
+obligations. — <i>end note</i>]
+</p>
+
<dt>Throws:</dt>
<dd>
Nothing.
@@ -1038,7 +1048,7 @@
This value should only be considered to be a hint.
—<i>end note</i>]
If this value is not computable or well defined a
-return value of 1 is recommended, but not required.
+return value of 0 is recommended, but not required.
</dd>
<dt>Throws:</dt>
@@ -4160,7 +4170,7 @@
Coordinated Universal Time, known as UTC, time.
<code>system_time</code>
shall provide an epoch time of 1970-01-01 00:00:00.000000000
- and a maximum time value of at least epoch time + 292 years.
+ and a maximum time value of at least epoch time ± 292 years.
[<i>Note:</i>
292 years represents the number of nanoseconds
that can be represented in a signed 64 bit integer.
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