Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54060 - sandbox/task/libs/task/examples
From: oliver.kowalke_at_[hidden]
Date: 2009-06-18 14:56:59


Author: olli
Date: 2009-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
New Revision: 54060
URL: http://svn.boost.org/trac/boost/changeset/54060

Log:
* examples corrected for FreeBSD

Text files modified:
   sandbox/task/libs/task/examples/delay.cpp | 2 +-
   sandbox/task/libs/task/examples/interrupt.cpp | 2 +-
   sandbox/task/libs/task/examples/pending.cpp | 2 +-
   sandbox/task/libs/task/examples/reschedule_until.cpp | 2 +-
   sandbox/task/libs/task/examples/yield.cpp | 2 +-
   5 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/task/libs/task/examples/delay.cpp
==============================================================================
--- sandbox/task/libs/task/examples/delay.cpp (original)
+++ sandbox/task/libs/task/examples/delay.cpp 2009-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
@@ -66,7 +66,7 @@
 {
         try
         {
- pool_type pool( pool_type::bind_to_processors() );
+ pool_type pool( tsk::poolsize( 5) );
                 
                 for ( int i = 0; i < 10; ++i)
                 {

Modified: sandbox/task/libs/task/examples/interrupt.cpp
==============================================================================
--- sandbox/task/libs/task/examples/interrupt.cpp (original)
+++ sandbox/task/libs/task/examples/interrupt.cpp 2009-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
@@ -44,7 +44,7 @@
 {
         try
         {
- pool_type pool( pool_type::bind_to_processors() );
+ pool_type pool( tsk::poolsize( 5) );
                 
                 tsk::task< void > t1( long_running_fn);
                 tsk::task< int > t2(

Modified: sandbox/task/libs/task/examples/pending.cpp
==============================================================================
--- sandbox/task/libs/task/examples/pending.cpp (original)
+++ sandbox/task/libs/task/examples/pending.cpp 2009-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
@@ -45,7 +45,7 @@
 {
         try
         {
- pool_type pool( pool_type::bind_to_processors() );
+ pool_type pool( tsk::poolsize( 5) );
 
                 tsk::task< void > t1( long_running_fn);
                 tsk::async(

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-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
@@ -146,7 +146,7 @@
 # if defined(BOOST_POSIX_API)
         try
         {
- pool_type pool( pool_type::bind_to_processors() );
+ pool_type pool( tsk::poolsize( 5) );
 
                 int fd[2];
                 create_sockets( fd);

Modified: sandbox/task/libs/task/examples/yield.cpp
==============================================================================
--- sandbox/task/libs/task/examples/yield.cpp (original)
+++ sandbox/task/libs/task/examples/yield.cpp 2009-06-18 14:56:58 EDT (Thu, 18 Jun 2009)
@@ -70,7 +70,7 @@
 {
         try
         {
- pool_type pool( pool_type::bind_to_processors() );
+ pool_type pool( tsk::poolsize( 3) );
 
                 for ( int i = 0; i < 10; ++i)
                 {


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