|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51182 - sandbox/interthreads/boost/interthreads
From: vicente.botet_at_[hidden]
Date: 2009-02-10 10:32:51
Author: viboes
Date: 2009-02-10 10:32:51 EST (Tue, 10 Feb 2009)
New Revision: 51182
URL: http://svn.boost.org/trac/boost/changeset/51182
Log:
interthreads version 0.4.1
* Adding 4 parameters to fork_all
Text files modified:
sandbox/interthreads/boost/interthreads/fork_all.hpp | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 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-10 10:32:51 EST (Tue, 10 Feb 2009)
@@ -89,6 +89,15 @@
typename fork<AE,F3>::type
> type;
};
+ template <typename AE, typename F1, typename F2, typename F3, typename F4>
+ struct fork_all<AE, fusion::tuple<F1,F2,F3,F4> > {
+ typedef fusion::tuple<
+ typename fork<AE,F1>::type,
+ typename fork<AE,F2>::type,
+ typename fork<AE,F3>::type,
+ typename fork<AE,F4>::type
+ > type;
+ };
}
@@ -130,11 +139,11 @@
}
#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 ) {
+ typedef typename result_of::fork_all<AE, fusion::tuple<F1,F2,F3,F4> >::type type;
+ return type(ae.fork(f1),ae.fork(f2),ae.fork(f3),ae.fork(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