|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53482 - sandbox/task/libs/task/src
From: oliver.kowalke_at_[hidden]
Date: 2009-05-31 03:05:01
Author: olli
Date: 2009-05-31 03:05:00 EDT (Sun, 31 May 2009)
New Revision: 53482
URL: http://svn.boost.org/trac/boost/changeset/53482
Log:
* modification of static init of default_pool
Text files modified:
sandbox/task/libs/task/src/default_pool.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/task/libs/task/src/default_pool.cpp
==============================================================================
--- sandbox/task/libs/task/src/default_pool.cpp (original)
+++ sandbox/task/libs/task/src/default_pool.cpp 2009-05-31 03:05:00 EDT (Sun, 31 May 2009)
@@ -14,7 +14,12 @@
{
namespace detail
{
+namespace
+{
+ const poolsize init()
+ { return poolsize( thread::hardware_concurrency() ); }
+}
default_pool_t
-static_pool::instance = default_pool_t( poolsize( thread::hardware_concurrency() ) );
+static_pool::instance( init() );
}
} }
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk