Boost logo

Boost-Commit :

From: Lawrence_at_[hidden]
Date: 2007-12-05 17:44:05


Author: crowl
Date: 2007-12-05 17:44:04 EST (Wed, 05 Dec 2007)
New Revision: 41766
URL: http://svn.boost.org/trac/boost/changeset/41766

Log:
Minor code reformatting.

Text files modified:
   sandbox/committee/LWG/thread_library.html | 12 +++++-------
   1 files changed, 5 insertions(+), 7 deletions(-)

Modified: sandbox/committee/LWG/thread_library.html
==============================================================================
--- sandbox/committee/LWG/thread_library.html (original)
+++ sandbox/committee/LWG/thread_library.html 2007-12-05 17:44:04 EST (Wed, 05 Dec 2007)
@@ -1703,7 +1703,8 @@
 <pre><code>
 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
+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;
@@ -1750,7 +1751,7 @@
     lock_guard&amp; operator=(lock_guard const&amp;) = delete;
 
 private:
- mutex_type* pm; // for exposition only
+ mutex_type* <var>pm</var>; // <em>for exposition only</em>
 };
 
 } // std</code></pre>
@@ -2993,11 +2994,10 @@
 </p>
 
 <blockquote>
-<pre><code>while (!<var>pred</var>())
-{
+<pre><code>
+while (!<var>pred</var>())
     if (!timed_wait(<var>lock</var>, <var>abs_time</var>))
         return <var>pred</var>();
-}
 return true;
 </code></pre>
 </blockquote>
@@ -3347,10 +3347,8 @@
 <blockquote>
 <pre><code>
 while (!<var>pred</var>())
-{
     if (!timed_wait(<var>lock</var>, <var>abs_time</var>))
         return <var>pred</var>();
-}
 return true;
 </code></pre>
 </blockquote>


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