1 | // Copyright (C) 2007 Anthony Williams |
---|---|
2 | // |
3 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
5 | |
6 | #define BOOST_TEST_MODULE Boost.Threads: hardware_concurrency test suite |
7 | |
8 | #include <boost/thread/thread_only.hpp> |
9 | #include <boost/test/unit_test.hpp> |
10 | #include <boost/thread/mutex.hpp> |
11 | |
12 | BOOST_AUTO_TEST_CASE(test_hardware_concurrency_is_non_zero) |
13 | { |
14 | BOOST_CHECK(boost::thread::hardware_concurrency()!=0); |
15 | } |
16 | |
17 | |
18 |