]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/thread/executors/work.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / thread / executors / work.hpp
CommitLineData
7c673cae
FG
1// (C) Copyright 2013,2014 Vicente J. Botet Escriba
2//
3// Distributed under the Boost Software License, Version 1.0. (See
4// accompanying file LICENSE_1_0.txt or copy at
5// http://www.boost.org/LICENSE_1_0.txt)
6
7#ifndef BOOST_THREAD_EXECUTORS_WORK_HPP
8#define BOOST_THREAD_EXECUTORS_WORK_HPP
9
10#include <boost/thread/detail/config.hpp>
92f5a8d4
TL
11#if defined BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION && defined BOOST_THREAD_PROVIDES_EXECUTORS && defined BOOST_THREAD_USES_MOVE
12
7c673cae
FG
13#include <boost/thread/detail/nullary_function.hpp>
14#include <boost/thread/csbl/functional.hpp>
15
16namespace boost
17{
18 namespace executors
19 {
20 typedef detail::nullary_function<void()> work;
21
22#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
23 typedef detail::nullary_function<void()> work_pq;
24 //typedef csbl::function<void()> work_pq;
25#else
26 typedef csbl::function<void()> work_pq;
27#endif
28 }
29} // namespace boost
30
92f5a8d4 31#endif
7c673cae 32#endif // BOOST_THREAD_EXECUTORS_WORK_HPP