$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r52697 - in sandbox/task/libs/task: src test
From: oliver.kowalke_at_[hidden]
Date: 2009-05-01 05:29:00
Author: olli
Date: 2009-05-01 05:28:59 EDT (Fri, 01 May 2009)
New Revision: 52697
URL: http://svn.boost.org/trac/boost/changeset/52697
Log:
* tests fixed
Text files modified: 
   sandbox/task/libs/task/src/interrupter.cpp        |     2 +-                                      
   sandbox/task/libs/task/test/test_default_pool.cpp |     3 ++-                                     
   sandbox/task/libs/task/test/test_new_thread.cpp   |     3 ++-                                     
   sandbox/task/libs/task/test/test_own_thread.cpp   |     5 +++--                                   
   4 files changed, 8 insertions(+), 5 deletions(-)
Modified: sandbox/task/libs/task/src/interrupter.cpp
==============================================================================
--- sandbox/task/libs/task/src/interrupter.cpp	(original)
+++ sandbox/task/libs/task/src/interrupter.cpp	2009-05-01 05:28:59 EDT (Fri, 01 May 2009)
@@ -15,7 +15,7 @@
 void
 interrupter::impl::interrupt_()
 {
-	if ( ! interruption_requested_ && ! done_)
+	if ( ! interruption_requested_)
         {
                 interruption_requested_ = true;
                 if ( thrd_) thrd_->interrupt();
Modified: sandbox/task/libs/task/test/test_default_pool.cpp
==============================================================================
--- sandbox/task/libs/task/test/test_default_pool.cpp	(original)
+++ sandbox/task/libs/task/test/test_default_pool.cpp	2009-05-01 05:28:59 EDT (Fri, 01 May 2009)
@@ -162,7 +162,8 @@
         void test_case_8()
         {
                 tsk::handle< void > h1(
-			tsk::async_in_pool(
+			tsk::async(
+				tsk::default_pool(),
                                 tsk::make_task(
                                         delay_fn,
                                         pt::seconds( 3) ) ) );
Modified: sandbox/task/libs/task/test/test_new_thread.cpp
==============================================================================
--- sandbox/task/libs/task/test/test_new_thread.cpp	(original)
+++ sandbox/task/libs/task/test/test_new_thread.cpp	2009-05-01 05:28:59 EDT (Fri, 01 May 2009)
@@ -162,7 +162,8 @@
         void test_case_8()
         {
                 tsk::handle< void > h1(
-			tsk::async_in_pool(
+			tsk::async(
+				tsk::new_thread(),
                                 tsk::make_task(
                                         delay_fn,
                                         pt::seconds( 3) ) ) );
Modified: sandbox/task/libs/task/test/test_own_thread.cpp
==============================================================================
--- sandbox/task/libs/task/test/test_own_thread.cpp	(original)
+++ sandbox/task/libs/task/test/test_own_thread.cpp	2009-05-01 05:28:59 EDT (Fri, 01 May 2009)
@@ -162,7 +162,8 @@
         void test_case_8()
         {
                 tsk::handle< void > h1(
-			tsk::async_in_pool(
+			tsk::async(
+				tsk::own_thread(),
                                 tsk::make_task(
                                         delay_fn,
                                         pt::seconds( 3) ) ) );
@@ -173,7 +174,7 @@
                                         fibonacci_fn,
                                         10) ) );
                 tsk::waitfor_any( h1, h2);
-		BOOST_CHECK( ! h1.is_ready() );
+		BOOST_CHECK( h1.is_ready() );
                 BOOST_CHECK( h2.is_ready() );
                 BOOST_CHECK_EQUAL( h2.get(), 55);
         }