11 #ifndef ASIO_DETAIL_NULL_THREAD_HPP 12 #define ASIO_DETAIL_NULL_THREAD_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 18 #include "asio/detail/config.hpp" 20 #if !defined(ASIO_HAS_THREADS) 22 #include "asio/detail/noncopyable.hpp" 23 #include "asio/detail/throw_error.hpp" 24 #include "asio/error.hpp" 26 #include "asio/detail/push_options.hpp" 36 template <
typename Function>
39 asio::detail::throw_error(
40 asio::error::operation_not_supported,
"thread");
54 static std::size_t hardware_concurrency()
63 #include "asio/detail/pop_options.hpp" 65 #endif // !defined(ASIO_HAS_THREADS) 67 #endif // ASIO_DETAIL_NULL_THREAD_HPP Definition: noncopyable.hpp:25
Definition: null_thread.hpp:31
Definition: any_io_executor.hpp:28