Fix a bug in the number of workers

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2718 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
quemy 2012-08-21 07:45:57 +00:00
commit 354ac605bb
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ template<template <class> class EOAlgo, class EOT>
template<class... Args>
paradiseo::smp::MWModel<EOAlgo,EOT>::MWModel (unsigned workersNb, Args&... args) :
EOAlgo<EOT>(args...),
scheduler(workersNb-1)
scheduler(workersNb)
{ assert(workersNb > 0); }
template<template <class> class EOAlgo, class EOT>

View file

@ -58,7 +58,7 @@ class MWModel : public EOAlgo<EOT>
public:
/**
* Constructor
* @param workersNb the number of workers including the master
* @param workersNb the number of workers
* @param args... list of parameters according to the constructor of your algorithm
*/
template<class... Args>