标题:QThread::start: Failed to create thread。
作者:shixingya
日期:2018-04-25 16:42
内容:
Critical: File:() Line:(0) Fun:() (2018-04-25 16:37:53 周三) QThread::start: Failed to create thread (设备不识别此命令。)
Fatal: File:() Line:(0) Fun:() (2018-04-25 16:38:19 周三) createDIB: CreateDIBSection failed.
程序报错如上, 求大神提供解bug的思路, 程序中开了30个子线程, 相关代码如下
void TaskQueueManager::clearThreadList(GtList&threadList)
{
int count =threadList.count();
for(int i=0; iquit();
thread->wait();
}
threadList.clear();
}
void TaskQueueManager::initThreadList(int threadCount, GtList& threadList)
{
threadList.clear();
for(int i=0; istart(QThread::TimeCriticalPriority);
threadList.push_back(thread);
}
}
auto circleTaskList =[&](GtList& _waitTasks,GtList &threadList , QMap &runningTasks )
{
while(_waitTasks.count()>0 && runningTasks.count()