Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/log/detail/spin_mutex.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
1 /* | 1 /* |
2 * Copyright Andrey Semashev 2007 - 2013. | 2 * Copyright Andrey Semashev 2007 - 2015. |
3 * Distributed under the Boost Software License, Version 1.0. | 3 * Distributed under the Boost Software License, Version 1.0. |
4 * (See accompanying file LICENSE_1_0.txt or copy at | 4 * (See accompanying file LICENSE_1_0.txt or copy at |
5 * http://www.boost.org/LICENSE_1_0.txt) | 5 * http://www.boost.org/LICENSE_1_0.txt) |
6 */ | 6 */ |
7 /*! | 7 /*! |
118 } | 118 } |
119 | 119 |
120 void lock() | 120 void lock() |
121 { | 121 { |
122 #if defined(BOOST_LOG_PAUSE_OP) | 122 #if defined(BOOST_LOG_PAUSE_OP) |
123 register unsigned int pause_count = initial_pause; | 123 unsigned int pause_count = initial_pause; |
124 #endif | 124 #endif |
125 while (!try_lock()) | 125 while (!try_lock()) |
126 { | 126 { |
127 #if defined(BOOST_LOG_PAUSE_OP) | 127 #if defined(BOOST_LOG_PAUSE_OP) |
128 if (pause_count < max_pause) | 128 if (pause_count < max_pause) |
129 { | 129 { |
130 for (register unsigned int i = 0; i < pause_count; ++i) | 130 for (unsigned int i = 0; i < pause_count; ++i) |
131 { | 131 { |
132 BOOST_LOG_PAUSE_OP; | 132 BOOST_LOG_PAUSE_OP; |
133 } | 133 } |
134 pause_count += pause_count; | 134 pause_count += pause_count; |
135 } | 135 } |