is it possible to create N std::thread objects, each running a while loop until the "task" list is not empty ?
It could be look like this:
Schedule sched( N );
schned.add( func1, param1, param2, param3 );
schned.add( func1, param1, param2, param3 );
schned.add( func2, param1 );
schned.add( func3, IntegerParam );
schned.add( func4, StringParam );
sched.start(); // start & join each thread wait until all threads finished
with function declaration:
bool func1( int, int, int );
bool func2( int );
bool func3( int );
bool func4( std::string );
is this possible with variadic arguments ?