Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58010 - sandbox/fiber/libs/fiber/test
From: oliver.kowalke_at_[hidden]
Date: 2009-11-28 12:16:00


Author: olli
Date: 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
New Revision: 58010
URL: http://svn.boost.org/trac/boost/changeset/58010

Log:
- tests -< scheduler as template

Text files modified:
   sandbox/fiber/libs/fiber/test/test_at_exit.cpp | 2 +-
   sandbox/fiber/libs/fiber/test/test_auto_reset_event.cpp | 4 ++--
   sandbox/fiber/libs/fiber/test/test_cancel.cpp | 4 ++--
   sandbox/fiber/libs/fiber/test/test_condition.cpp | 6 +++---
   sandbox/fiber/libs/fiber/test/test_count_down_event.cpp | 2 +-
   sandbox/fiber/libs/fiber/test/test_join.cpp | 6 +++---
   sandbox/fiber/libs/fiber/test/test_manual_reset_event.cpp | 6 +++---
   sandbox/fiber/libs/fiber/test/test_mutex.cpp | 4 ++--
   sandbox/fiber/libs/fiber/test/test_utility.cpp | 8 ++++----
   9 files changed, 21 insertions(+), 21 deletions(-)

Modified: sandbox/fiber/libs/fiber/test/test_at_exit.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_at_exit.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_at_exit.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -29,7 +29,7 @@
 
 void test_case_1()
 {
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber( fn);
 

Modified: sandbox/fiber/libs/fiber/test/test_auto_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_auto_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_auto_reset_event.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -33,7 +33,7 @@
 {
         value = 0;
         boost::fibers::auto_reset_event ev;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,
@@ -71,7 +71,7 @@
 {
         value = 0;
         boost::fibers::auto_reset_event ev( true);
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,

Modified: sandbox/fiber/libs/fiber/test/test_cancel.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_cancel.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_cancel.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -51,7 +51,7 @@
         value1 = 0;
         value2 = 0;
 
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber( fn_1);
         sched.make_fiber( fn_2);
@@ -113,7 +113,7 @@
         value2 = 0;
         value3 = 0;
 
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         boost::fiber f( fn_2);
         sched.submit_fiber( f);

Modified: sandbox/fiber/libs/fiber/test/test_condition.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_condition.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_condition.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -46,7 +46,7 @@
         value = 0;
         boost::fibers::mutex mtx;
         boost::fibers::condition cond;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,
@@ -87,7 +87,7 @@
         value = 0;
         boost::fibers::mutex mtx;
         boost::fibers::condition cond;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,
@@ -141,7 +141,7 @@
         value = 0;
         boost::fibers::mutex mtx;
         boost::fibers::condition cond;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,

Modified: sandbox/fiber/libs/fiber/test/test_count_down_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_count_down_event.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_count_down_event.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -57,7 +57,7 @@
         value = 0;
         boost::uint32_t n = 3;
         boost::fibers::count_down_event ev( n);
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         BOOST_CHECK_EQUAL( ev.initial(), n);
         BOOST_CHECK_EQUAL( ev.current(), n);

Modified: sandbox/fiber/libs/fiber/test/test_join.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_join.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_join.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -66,7 +66,7 @@
         value1 = 0;
         value2 = 0;
 
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         boost::fiber f( fn_1);
         sched.submit_fiber( f);
@@ -166,7 +166,7 @@
         value2 = 0;
         value3 = 0;
 
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         boost::fiber f( fn_1);
         sched.submit_fiber( f);
@@ -310,7 +310,7 @@
         value2 = 0;
         value3 = 0;
 
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         boost::fiber f1( fn_1);
         sched.submit_fiber( f1);

Modified: sandbox/fiber/libs/fiber/test/test_manual_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_manual_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_manual_reset_event.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -32,7 +32,7 @@
 {
         value = 0;
         boost::fibers::manual_reset_event ev;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,
@@ -62,7 +62,7 @@
 {
         value = 0;
         boost::fibers::manual_reset_event ev;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,
@@ -108,7 +108,7 @@
 {
         value = 0;
         boost::fibers::manual_reset_event ev( true);
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
 
         sched.make_fiber(
                 wait_fn,

Modified: sandbox/fiber/libs/fiber/test/test_mutex.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_mutex.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_mutex.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -64,7 +64,7 @@
 
 void test_case1()
 {
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
     sched.make_fiber( & do_test_mutex);
         sched.run();
 }
@@ -89,7 +89,7 @@
 void test_case2()
 {
         boost::fibers::mutex mtx;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
     sched.make_fiber( & test_fn1, boost::ref( mtx) );
     sched.make_fiber( & test_fn2, boost::ref( mtx) );
 

Modified: sandbox/fiber/libs/fiber/test/test_utility.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/test/test_utility.cpp (original)
+++ sandbox/fiber/libs/fiber/test/test_utility.cpp 2009-11-28 12:15:58 EST (Sat, 28 Nov 2009)
@@ -49,7 +49,7 @@
 
 void test_case_1()
 {
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
         sched.make_fiber( runs_as_fn);
 
         BOOST_CHECK( sched.run() );
@@ -59,7 +59,7 @@
 
 void test_case_2()
 {
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
         sched.make_fiber( get_id_fn);
 
         BOOST_CHECK( sched.run() );
@@ -71,7 +71,7 @@
 void test_case_3()
 {
         value = 0;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
         sched.make_fiber( yield_fn, 3);
         BOOST_CHECK_EQUAL( 0, value);
 
@@ -94,7 +94,7 @@
 void test_case_4()
 {
         value = 0;
- boost::fibers::scheduler sched;
+ boost::fibers::scheduler<> sched;
         sched.make_fiber( cancel_fn, 5);
         BOOST_CHECK_EQUAL( 0, value);
         


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