Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83511 - trunk/libs/chrono/doc
From: vicente.botet_at_[hidden]
Date: 2013-03-20 18:14:47


Author: viboes
Date: 2013-03-20 18:14:46 EDT (Wed, 20 Mar 2013)
New Revision: 83511
URL: http://svn.boost.org/trac/boost/changeset/83511

Log:
Chrono: Added thread-safe doc for now().
Text files modified:
   trunk/libs/chrono/doc/chrono.qbk | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/libs/chrono/doc/chrono.qbk
==============================================================================
--- trunk/libs/chrono/doc/chrono.qbk (original)
+++ trunk/libs/chrono/doc/chrono.qbk 2013-03-20 18:14:46 EDT (Wed, 20 Mar 2013)
@@ -3330,7 +3330,7 @@
 [note This means, in particular, that operations on these types will not throw exceptions.]
 
 * lvalues of the types `TC::rep`, `TC::duration`, and `TC::time_point` are swappable,
-* the function `TC::now()` does not throw exceptions, and
+* the function `TC::now()` does not throw exceptions and it is thread-safe, and
 * the type `TC::time_point::clock` meets the `TrivialClock` requirements, recursively.
 
 Models of __TrivialClock:
@@ -3350,7 +3350,8 @@
 A type `EcC` meets the `EcClock` requirements if
 
 * `TC` satisfies the `TrivialClock ` requirements, and
-* it add `now()` interfaces allowing to recover internal error codes as described in the following table.
+* it adds `now()` interfaces allowing to recover internal error codes as described in the following table.
+* the added now() function is thread-safe.
 
 In this table `C1` denotes a `EcClock` type and `ec` is an instance of a `boost::system::error_code`.
 


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