Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/pool/detail/mutex.hpp @ 118:770eb830ec19 emscripten
Typo fix
author | Chris Cannam |
---|---|
date | Wed, 18 May 2016 16:14:08 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Copyright (C) 2000 Stephen Cleary |
Chris@16 | 2 // |
Chris@16 | 3 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 4 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 5 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 6 // |
Chris@16 | 7 // See http://www.boost.org for updates, documentation, and revision history. |
Chris@16 | 8 |
Chris@16 | 9 #ifndef BOOST_POOL_MUTEX_HPP |
Chris@16 | 10 #define BOOST_POOL_MUTEX_HPP |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/config.hpp> // for workarounds |
Chris@16 | 13 #ifdef BOOST_HAS_THREADS |
Chris@16 | 14 #include <boost/thread/mutex.hpp> |
Chris@16 | 15 #endif |
Chris@16 | 16 |
Chris@16 | 17 namespace boost{ namespace details{ namespace pool{ |
Chris@16 | 18 |
Chris@16 | 19 class null_mutex |
Chris@16 | 20 { |
Chris@16 | 21 private: |
Chris@16 | 22 null_mutex(const null_mutex &); |
Chris@16 | 23 void operator=(const null_mutex &); |
Chris@16 | 24 |
Chris@16 | 25 public: |
Chris@16 | 26 null_mutex() { } |
Chris@16 | 27 |
Chris@16 | 28 static void lock() { } |
Chris@16 | 29 static void unlock() { } |
Chris@16 | 30 }; |
Chris@16 | 31 |
Chris@16 | 32 #if !defined(BOOST_HAS_THREADS) || defined(BOOST_NO_MT) || defined(BOOST_POOL_NO_MT) |
Chris@16 | 33 typedef null_mutex default_mutex; |
Chris@16 | 34 #else |
Chris@16 | 35 typedef boost::mutex default_mutex; |
Chris@16 | 36 #endif |
Chris@16 | 37 |
Chris@16 | 38 } // namespace pool |
Chris@16 | 39 } // namespace details |
Chris@16 | 40 } // namespace boost |
Chris@16 | 41 |
Chris@16 | 42 #endif |