diff options
| author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-28 17:27:01 +0000 |
|---|---|---|
| committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-28 17:27:01 +0000 |
| commit | f4d90d643e07a9b40194b41233f5bdf2a7ef1b17 (patch) | |
| tree | 0ed25a637a039c2d5d231df811fefc8e6ec64536 /libstdc++-v3/include/std/thread | |
| parent | 792d374c1a7bc54243c2c22eba5199cf82b05b7d (diff) | |
| download | ppe42-gcc-f4d90d643e07a9b40194b41233f5bdf2a7ef1b17.tar.gz ppe42-gcc-f4d90d643e07a9b40194b41233f5bdf2a7ef1b17.zip | |
2011-05-28 Jonathan Wakely <jwakely.gcc@gmail.com>
* acinclude.m4: Define GLIBCXX_CHECK_GET_NPROCS and
GLIBCXX_CHECK_SC_NPROCESSORS_ONLN.
* configure.ac: Use them. Increase minor version.
* configure: Regenerate.
* config.h.in: Regenerate.
* include/std/thread (thread::hardware_concurrency): Remove inline
definition.
* src/thread.cc (thread::hardware_concurrency): Define.
* config/abi/pre/gnu.ver: Export new symbol @3.4.17
* testsuite/util/testsuite_abi.cc: Add new version.
* testsuite/lib/libstdc++.exp (check_v3_target_nprocs): Add.
* testsuite/lib/dg-options.exp (dg-require-nprocs): Add.
* testsuite/30_threads/thread/members/hardware_concurrency.cc: Use
dg-require-nprocs and verify hardware_concurrency returns non-zero.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174383 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/thread')
| -rw-r--r-- | libstdc++-v3/include/std/thread | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index e7a9b14276f..ab85735154e 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -179,8 +179,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Returns a value that hints at the number of hardware thread contexts. static unsigned int - hardware_concurrency() noexcept - { return 0; } + hardware_concurrency() noexcept; private: void |

