$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r53418 - sandbox/task/libs/task/examples
From: oliver.kowalke_at_[hidden]
Date: 2009-05-29 18:32:42
Author: olli
Date: 2009-05-29 18:32:42 EDT (Fri, 29 May 2009)
New Revision: 53418
URL: http://svn.boost.org/trac/boost/changeset/53418
Log:
+ some corrections
Text files modified: 
   sandbox/task/libs/task/examples/reschedule_until.cpp |     6 +++---                                  
   sandbox/task/libs/task/examples/yield.cpp            |     6 +++---                                  
   2 files changed, 6 insertions(+), 6 deletions(-)
Modified: sandbox/task/libs/task/examples/reschedule_until.cpp
==============================================================================
--- sandbox/task/libs/task/examples/reschedule_until.cpp	(original)
+++ sandbox/task/libs/task/examples/reschedule_until.cpp	2009-05-29 18:32:42 EDT (Fri, 29 May 2009)
@@ -55,14 +55,14 @@
                         BOOST_ASSERT( boost::this_task::runs_in_pool() );
                         tsk::handle< long > h1(
                                 tsk::async(
-					tsk::default_pool(),
+					tsk::as_sub_task(),
                                         tsk::make_task(
                                                 & fib_task::execute,
                                                 boost::ref( * this),
                                                 n - 1) ) );
                         tsk::handle< long > h2(
                                 tsk::async(
-					tsk::default_pool(),
+					tsk::as_sub_task(),
                                         tsk::make_task(
                                                 & fib_task::execute,
                                                 boost::ref( * this),
@@ -153,7 +153,7 @@
                 do_write( fd[1], "Hello ");
                 boost::this_thread::sleep( pt::seconds( 1) );
 
-		for ( int i = 0; i < 15; ++i)
+		for ( int i = 0; i < 10; ++i)
                         tsk::async(
                                 tsk::default_pool(),
                                 tsk::make_task(
Modified: sandbox/task/libs/task/examples/yield.cpp
==============================================================================
--- sandbox/task/libs/task/examples/yield.cpp	(original)
+++ sandbox/task/libs/task/examples/yield.cpp	2009-05-29 18:32:42 EDT (Fri, 29 May 2009)
@@ -50,14 +50,14 @@
                         BOOST_ASSERT( boost::this_task::runs_in_pool() );
                         tsk::handle< long > h1(
                                 tsk::async(
-					tsk::default_pool(),
+					tsk::as_sub_task(),
                                         tsk::make_task(
                                                 & fib_task::execute,
                                                 boost::ref( * this),
                                                 n - 1) ) );
                         tsk::handle< long > h2(
                                 tsk::async(
-					tsk::default_pool(),
+					tsk::as_sub_task(),
                                         tsk::make_task(
                                                 & fib_task::execute,
                                                 boost::ref( * this),
@@ -72,7 +72,7 @@
 {
         fib_task a( 5);
         long result = a.execute( n);
-	printf("n == %d, fibonnaci == %ld\n", n, result);
+	printf("n == %d, fibonnaci == %d\n", n, result);
 }
 
 int main( int argc, char *argv[])