|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53417 - sandbox/task/libs/task/examples
From: oliver.kowalke_at_[hidden]
Date: 2009-05-29 18:24:03
Author: olli
Date: 2009-05-29 18:24:03 EDT (Fri, 29 May 2009)
New Revision: 53417
URL: http://svn.boost.org/trac/boost/changeset/53417
Log:
* bugfix
Text files modified:
sandbox/task/libs/task/examples/bind_to_processors.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: sandbox/task/libs/task/examples/bind_to_processors.cpp
==============================================================================
--- sandbox/task/libs/task/examples/bind_to_processors.cpp (original)
+++ sandbox/task/libs/task/examples/bind_to_processors.cpp 2009-05-29 18:24:03 EDT (Fri, 29 May 2009)
@@ -46,17 +46,17 @@
BOOST_ASSERT( boost::this_task::runs_in_pool() );
tsk::handle< long > h1(
tsk::async(
- boost::this_task::get_pool< pool_type >(),
+ boost::task::as_sub_task(), // do not use this_task::get_pool() because it doesn't create as sub-task
tsk::make_task(
& fib_task::execute,
- boost::ref( * this),
+ this,
n - 1) ) ) ;
tsk::handle< long > h2(
tsk::async(
- boost::this_task::get_pool< pool_type >(),
+ boost::task::as_sub_task(), // do not use this_task::get_pool() because it doesn't create as sub-task
tsk::make_task(
& fib_task::execute,
- boost::ref( * this),
+ this,
n - 2) ) );
return h1.get() + h2.get();
}
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