comparison DEPENDENCIES/generic/include/boost/thread/completion_latch.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
14 #include <boost/thread/lock_types.hpp> 14 #include <boost/thread/lock_types.hpp>
15 #include <boost/thread/condition_variable.hpp> 15 #include <boost/thread/condition_variable.hpp>
16 #include <boost/chrono/duration.hpp> 16 #include <boost/chrono/duration.hpp>
17 #include <boost/chrono/time_point.hpp> 17 #include <boost/chrono/time_point.hpp>
18 #include <boost/assert.hpp> 18 #include <boost/assert.hpp>
19 #ifdef BOOST_NO_CXX11_HDR_FUNCTIONAL 19 //#include <boost/thread/detail/nullary_function.hpp>
20 #include <boost/function.hpp> 20 #include <boost/thread/csbl/functional.hpp>
21 #else
22 #include <functional>
23 #endif
24 //#include <boost/thread/latch.hpp>
25 21
26 #include <boost/config/abi_prefix.hpp> 22 #include <boost/config/abi_prefix.hpp>
27 23
28 namespace boost 24 namespace boost
29 { 25 {
35 } 31 }
36 class completion_latch 32 class completion_latch
37 { 33 {
38 public: 34 public:
39 /// the implementation defined completion function type 35 /// the implementation defined completion function type
40 #ifdef BOOST_NO_CXX11_HDR_FUNCTIONAL 36 //typedef detail::nullary_function<void()> completion_function;
41 typedef function<void()> completion_function; 37 typedef csbl::function<void()> completion_function;
42 #else
43 typedef std::function<void()> completion_function;
44 #endif
45 /// noop completion function factory 38 /// noop completion function factory
46 static completion_function noop() 39 static completion_function noop()
47 { 40 {
48 return completion_function(&thread_detail::noop); 41 return completion_function(&thread_detail::noop);
49 } 42 }