Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/thread/once.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | 2665513ce2d3 |
children |
rev | line source |
---|---|
Chris@16 | 1 #ifndef BOOST_THREAD_ONCE_HPP |
Chris@16 | 2 #define BOOST_THREAD_ONCE_HPP |
Chris@16 | 3 |
Chris@16 | 4 // once.hpp |
Chris@16 | 5 // |
Chris@16 | 6 // (C) Copyright 2006-7 Anthony Williams |
Chris@16 | 7 // |
Chris@16 | 8 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 9 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 10 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 11 |
Chris@16 | 12 #include <boost/thread/detail/config.hpp> |
Chris@16 | 13 #include <boost/thread/detail/platform.hpp> |
Chris@16 | 14 #if defined(BOOST_THREAD_PLATFORM_WIN32) |
Chris@16 | 15 #include <boost/thread/win32/once.hpp> |
Chris@16 | 16 #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) |
Chris@16 | 17 #if defined BOOST_THREAD_ONCE_FAST_EPOCH |
Chris@16 | 18 #include <boost/thread/pthread/once.hpp> |
Chris@16 | 19 #elif defined BOOST_THREAD_ONCE_ATOMIC |
Chris@16 | 20 #include <boost/thread/pthread/once_atomic.hpp> |
Chris@16 | 21 #else |
Chris@16 | 22 #error "Once Not Implemented" |
Chris@16 | 23 #endif |
Chris@16 | 24 #else |
Chris@16 | 25 #error "Boost threads unavailable on this platform" |
Chris@16 | 26 #endif |
Chris@16 | 27 |
Chris@16 | 28 #include <boost/config/abi_prefix.hpp> |
Chris@16 | 29 |
Chris@16 | 30 namespace boost |
Chris@16 | 31 { |
Chris@16 | 32 // template<class Callable, class ...Args> void |
Chris@16 | 33 // call_once(once_flag& flag, Callable&& func, Args&&... args); |
Chris@16 | 34 template<typename Function> |
Chris@16 | 35 inline void call_once(Function func,once_flag& flag) |
Chris@16 | 36 //inline void call_once(void (*func)(),once_flag& flag) |
Chris@16 | 37 { |
Chris@16 | 38 call_once(flag,func); |
Chris@16 | 39 } |
Chris@16 | 40 } |
Chris@16 | 41 |
Chris@16 | 42 #include <boost/config/abi_suffix.hpp> |
Chris@16 | 43 |
Chris@16 | 44 #endif |