Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/log/sinks/block_on_overflow.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 /*! |
72 | 72 |
73 private: | 73 private: |
74 //! Blocked threads | 74 //! Blocked threads |
75 thread_contexts m_thread_contexts; | 75 thread_contexts m_thread_contexts; |
76 | 76 |
77 private: | |
78 // Copying prohibited | |
79 block_on_overflow(block_on_overflow const&); | |
80 block_on_overflow& operator= (block_on_overflow const&); | |
81 | |
82 public: | 77 public: |
83 /*! | 78 /*! |
84 * Default constructor. | 79 * Default constructor. |
85 */ | 80 */ |
86 block_on_overflow() {} | 81 BOOST_DEFAULTED_FUNCTION(block_on_overflow(), {}) |
87 | 82 |
88 /*! | 83 /*! |
89 * This method is called by the queue when overflow is detected. | 84 * This method is called by the queue when overflow is detected. |
90 * | 85 * |
91 * \param lock An internal lock that protects the queue | 86 * \param lock An internal lock that protects the queue |
132 context.result = false; | 127 context.result = false; |
133 context.cond.notify_one(); | 128 context.cond.notify_one(); |
134 m_thread_contexts.pop_front(); | 129 m_thread_contexts.pop_front(); |
135 } | 130 } |
136 } | 131 } |
132 | |
133 // Copying prohibited | |
134 BOOST_DELETED_FUNCTION(block_on_overflow(block_on_overflow const&)) | |
135 BOOST_DELETED_FUNCTION(block_on_overflow& operator= (block_on_overflow const&)) | |
137 #endif // BOOST_LOG_DOXYGEN_PASS | 136 #endif // BOOST_LOG_DOXYGEN_PASS |
138 }; | 137 }; |
139 | 138 |
140 } // namespace sinks | 139 } // namespace sinks |
141 | 140 |