Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85194 - trunk/libs/thread/doc
From: vicente.botet_at_[hidden]
Date: 2013-08-03 03:44:15


Author: viboes
Date: 2013-08-03 03:44:15 EDT (Sat, 03 Aug 2013)
New Revision: 85194
URL: http://svn.boost.org/trac/boost/changeset/85194

Log:
Thread: apply pathc for #8931.

Text files modified:
   trunk/libs/thread/doc/external_locking.qbk | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/thread/doc/external_locking.qbk
==============================================================================
--- trunk/libs/thread/doc/external_locking.qbk Sat Aug 3 02:09:35 2013 (r85193)
+++ trunk/libs/thread/doc/external_locking.qbk 2013-08-03 03:44:15 EDT (Sat, 03 Aug 2013) (r85194)
@@ -217,7 +217,7 @@
 * You can create a `strict_lock<T>` only starting from a valid T object. Notice that there is no other way you can create a `strict_lock<T>`.
 
     BankAccount myAccount("John Doe", "123-45-6789");
- strict_locerk<BankAccount> myLock(myAccount); // ok
+ strict_lock<BankAccount> myLock(myAccount); // ok
 
 * You cannot copy `strict_lock`s to one another. In particular, you cannot pass `strict_lock`s by value to functions or have them returned by functions:
 
@@ -468,7 +468,7 @@
 We need a way to transfer the ownership from the `unique_lock` to a `strict_lock` the time we are working with `savingsAcct_` and then restore the ownership on `unique_lock`.
 
   void AccountManager::AMoreComplicatedChecking2Savings(int amount) {
- unique_lock<AccountManager> guard(*this, defer_lock);
+ unique_lock<AccountManager> guard1(*this, defer_lock);
       if (some_condition()) {
           guard1.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