Hello,
I have seen many people face a similar problem, but none of the answers solves mine. Below is a complete minimal example that reproduces the problem.
#include <QtCore/QtConcurrentMap>
#include <vector>
void work ( double & d )
{
d = 1.;
return;
}
void main ( int argc, char ** argv )
{
std::vector<double> v(500,0.);
QtConcurrent::blockingMap(v.begin(),v.end(),work);
return;
}
#include <QtCore/QtConcurrentMap>
#include <vector>
void work ( double & d )
{
d = 1.;
return;
}
void main ( int argc, char ** argv )
{
std::vector<double> v(500,0.);
QtConcurrent::blockingMap(v.begin(),v.end(),work);
return;
}
To copy to clipboard, switch view to plain text mode
Compiled with Qt 4.8.3 and Visual Studio 2010, the produced executable complains that a QWaitCondition was destroyed while threads were still waiting. What am I doing wrong? Should I upgrade Qt to fix this issue? Is there any workaround in case I can't upgrade right away?
Thank you for the time and support.
Yohann
Bookmarks