Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/flyweight/simple_locking.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 /* Copyright 2006-2008 Joaquin M Lopez Munoz. |
Chris@16 | 2 * Distributed under the Boost Software License, Version 1.0. |
Chris@16 | 3 * (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 4 * http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 5 * |
Chris@16 | 6 * See http://www.boost.org/libs/flyweight for library home page. |
Chris@16 | 7 */ |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_FLYWEIGHT_SIMPLE_LOCKING_HPP |
Chris@16 | 10 #define BOOST_FLYWEIGHT_SIMPLE_LOCKING_HPP |
Chris@16 | 11 |
Chris@101 | 12 #if defined(_MSC_VER) |
Chris@16 | 13 #pragma once |
Chris@16 | 14 #endif |
Chris@16 | 15 |
Chris@16 | 16 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */ |
Chris@16 | 17 #include <boost/flyweight/detail/recursive_lw_mutex.hpp> |
Chris@16 | 18 #include <boost/flyweight/simple_locking_fwd.hpp> |
Chris@16 | 19 #include <boost/flyweight/locking_tag.hpp> |
Chris@16 | 20 |
Chris@16 | 21 /* simple locking policy based on native recursive mutexes */ |
Chris@16 | 22 |
Chris@16 | 23 namespace boost{ |
Chris@16 | 24 |
Chris@16 | 25 namespace flyweights{ |
Chris@16 | 26 |
Chris@16 | 27 struct simple_locking:locking_marker |
Chris@16 | 28 { |
Chris@16 | 29 typedef detail::recursive_lightweight_mutex mutex_type; |
Chris@16 | 30 typedef mutex_type::scoped_lock lock_type; |
Chris@16 | 31 }; |
Chris@16 | 32 |
Chris@16 | 33 } /* namespace flyweights */ |
Chris@16 | 34 |
Chris@16 | 35 } /* namespace boost */ |
Chris@16 | 36 |
Chris@16 | 37 #endif |