comparison DEPENDENCIES/generic/include/boost/log/sinks/basic_sink_frontend.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 /*!
30 #include <boost/thread/exceptions.hpp> 30 #include <boost/thread/exceptions.hpp>
31 #include <boost/thread/tss.hpp> 31 #include <boost/thread/tss.hpp>
32 #include <boost/thread/locks.hpp> 32 #include <boost/thread/locks.hpp>
33 #include <boost/log/detail/locks.hpp> 33 #include <boost/log/detail/locks.hpp>
34 #include <boost/log/detail/light_rw_mutex.hpp> 34 #include <boost/log/detail/light_rw_mutex.hpp>
35 #include <boost/concept_check.hpp>
36 #endif // !defined(BOOST_LOG_NO_THREADS) 35 #endif // !defined(BOOST_LOG_NO_THREADS)
37 #include <boost/log/detail/header.hpp> 36 #include <boost/log/detail/header.hpp>
38 37
39 #ifdef BOOST_HAS_PRAGMA_ONCE 38 #ifdef BOOST_HAS_PRAGMA_ONCE
40 #pragma once 39 #pragma once
203 { 202 {
204 boost::log::aux::shared_lock_guard< mutex_type > frontend_lock(this->frontend_mutex()); 203 boost::log::aux::shared_lock_guard< mutex_type > frontend_lock(this->frontend_mutex());
205 if (this->exception_handler().empty()) 204 if (this->exception_handler().empty())
206 throw; 205 throw;
207 this->exception_handler()(); 206 this->exception_handler()();
207 return false;
208 } 208 }
209 #endif 209 #endif
210 // No need to lock anything in the feed_record method 210 // No need to lock anything in the feed_record method
211 boost::log::aux::fake_mutex m; 211 boost::log::aux::fake_mutex m;
212 feed_record(rec, m, backend); 212 feed_record(rec, m, backend);
480 { 480 {
481 boost::log::aux::shared_lock_guard< mutex_type > frontend_lock(this->frontend_mutex()); 481 boost::log::aux::shared_lock_guard< mutex_type > frontend_lock(this->frontend_mutex());
482 if (this->exception_handler().empty()) 482 if (this->exception_handler().empty())
483 throw; 483 throw;
484 this->exception_handler()(); 484 this->exception_handler()();
485 return false;
485 } 486 }
486 #endif 487 #endif
487 // No need to lock anything in the feed_record method 488 // No need to lock anything in the feed_record method
488 boost::log::aux::fake_mutex m; 489 boost::log::aux::fake_mutex m;
489 feed_record(rec, m, backend); 490 feed_record(rec, m, backend);