Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58493 - sandbox/fiber/boost/fiber
From: oliver.kowalke_at_[hidden]
Date: 2009-12-22 13:07:10


Author: olli
Date: 2009-12-22 13:07:09 EST (Tue, 22 Dec 2009)
New Revision: 58493
URL: http://svn.boost.org/trac/boost/changeset/58493

Log:
copyable schedulable
Text files modified:
   sandbox/fiber/boost/fiber/round_robin.hpp | 17 +++++++++++++++++
   1 files changed, 17 insertions(+), 0 deletions(-)

Modified: sandbox/fiber/boost/fiber/round_robin.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/round_robin.hpp (original)
+++ sandbox/fiber/boost/fiber/round_robin.hpp 2009-12-22 13:07:09 EST (Tue, 22 Dec 2009)
@@ -51,6 +51,23 @@
                         f( f_), joining_fibers(),
                         waiting_on_fiber(), waiting_on_object()
                 {}
+
+ schedulable( schedulable const& other) :
+ f( other.f),
+ waiting_on_fiber( other.waiting_on_fiber),
+ waiting_on_object( other.waiting_on_object)
+ {}
+
+ schedulable &
+ operator=( schedulable const& other)
+ {
+ if ( this == & other) return * this;
+ f = other.f;
+ joining_fibers = other.joining_fibers;
+ waiting_on_fiber = other.waiting_on_fiber;
+ waiting_on_object = other.waiting_on_object;
+ return * this;
+ }
         };
 
         typedef std::list< fiber::id > fiber_id_list;


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