diff options
Diffstat (limited to 'boost/asio/detail/std_thread.hpp')
-rw-r--r-- | boost/asio/detail/std_thread.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boost/asio/detail/std_thread.hpp b/boost/asio/detail/std_thread.hpp index cd2a61dac2..35bcc1722c 100644 --- a/boost/asio/detail/std_thread.hpp +++ b/boost/asio/detail/std_thread.hpp @@ -52,6 +52,12 @@ public: thread_.join(); } + // Get number of CPUs. + static std::size_t hardware_concurrency() + { + return std::thread::hardware_concurrency(); + } + private: std::thread thread_; }; |