diff options
Diffstat (limited to 'boost/asio/detail/win_thread.hpp')
-rw-r--r-- | boost/asio/detail/win_thread.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/asio/detail/win_thread.hpp b/boost/asio/detail/win_thread.hpp index a138d92ee8..f063330e1d 100644 --- a/boost/asio/detail/win_thread.hpp +++ b/boost/asio/detail/win_thread.hpp @@ -21,6 +21,7 @@ && !defined(BOOST_ASIO_WINDOWS_APP) \ && !defined(UNDER_CE) +#include <cstddef> #include <boost/asio/detail/noncopyable.hpp> #include <boost/asio/detail/socket_types.hpp> @@ -79,6 +80,9 @@ public: // Wait for the thread to exit. BOOST_ASIO_DECL void join(); + // Get number of CPUs. + BOOST_ASIO_DECL static std::size_t hardware_concurrency(); + private: friend BOOST_ASIO_DECL unsigned int __stdcall win_thread_function(void* arg); |