Well, one option would be to stay close to your current code and simply have each QRunnable of your thread pool run a QProcess.
So if your current runnable code looks like this
void MyRunnable::run()
{
some3rdPartyFunction(param1, param2, param3);
}
void MyRunnable::run()
{
some3rdPartyFunction(param1, param2, param3);
}
To copy to clipboard, switch view to plain text mode
then a QProcess based one would be a bit like this
void MyRunnable::run()
{
process.
start("helperExecutable",
QStringList() << param1 << param2 << param3
);
process.waitForFinished(-1);
}
void MyRunnable::run()
{
QProcess process;
process.start("helperExecutable", QStringList() << param1 << param2 << param3);
process.waitForFinished(-1);
}
To copy to clipboard, switch view to plain text mode
with "helperExecutable" taking the commandline arguments to call some3rdPartyFunction in its main().
Cheers,
_
Bookmarks