Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51214 - sandbox/interthreads/boost/interthreads
From: vicente.botet_at_[hidden]
Date: 2009-02-12 07:51:42


Author: viboes
Date: 2009-02-12 07:51:42 EST (Thu, 12 Feb 2009)
New Revision: 51214
URL: http://svn.boost.org/trac/boost/changeset/51214

Log:
interthreads version 0.4.1
    * Adding 4 parameters to fork_all

Text files modified:
   sandbox/interthreads/boost/interthreads/fork_all.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: sandbox/interthreads/boost/interthreads/fork_all.hpp
==============================================================================
--- sandbox/interthreads/boost/interthreads/fork_all.hpp (original)
+++ sandbox/interthreads/boost/interthreads/fork_all.hpp 2009-02-12 07:51:42 EST (Thu, 12 Feb 2009)
@@ -139,6 +139,13 @@
 }
 #endif
 
+template< typename AE, typename F1, typename F2, typename F3>
+typename result_of::fork_all<AE, fusion::tuple<F1,F2,F3> >::type
+fork_all( AE& ae, F1 f1, F2 f2, F3 f3 ) {
+ typedef typename result_of::fork_all<AE, fusion::tuple<F1,F2,F3> >::type type;
+ return type(ae.fork(f1),ae.fork(f2),ae.fork(f3));
+}
+
 template< typename AE, typename F1, typename F2, typename F3, typename F4>
 typename result_of::fork_all<AE, fusion::tuple<F1,F2,F3,F4> >::type
 fork_all( AE& ae, F1 f1, F2 f2, F3 f3, F4 f4 ) {


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