触发器与相机联动成功

This commit is contained in:
2024-05-22 01:32:43 +08:00
parent 8c68d557eb
commit 323cc25cf7
13 changed files with 230 additions and 135 deletions
@@ -35,7 +35,7 @@ int threadAmount = 0;
int maxThread = 16;
////////////THREAD//Manager////////////////////////
threadConroller::threadConroller(QObject* parent) : QThread(parent)
threadManager::threadManager(QObject* parent) : QThread(parent)
{
//sql初始化
sql = new sqlManager;
@@ -57,7 +57,7 @@ threadConroller::threadConroller(QObject* parent) : QThread(parent)
}
}
void threadConroller::run()
void threadManager::run()
{
return;
while (1)
@@ -100,9 +100,9 @@ void threadConroller::run()
QThread::msleep(10);
}
}
void threadConroller::addTask(detData* data)
void threadManager::addTask(detData* data)
{
cout << __LINE__ << "insert Data " << data ->timeCode<< endl;
//cout << __LINE__ << "insert Data " << data ->timeCode<< endl;
{
algoThreadCls::datastruct _struct = bridge.back.json.algoThreads.getData(data->algoThreadName);
data->algoThreadIndex = _struct.threadIndex;
@@ -125,7 +125,7 @@ void threadConroller::addTask(detData* data)
insertQueueMutex.unlock();
//this->start();
}
bool threadConroller::getFreeThread()
bool threadManager::getFreeThread()
{
#if 0
int index = 0;
@@ -147,7 +147,7 @@ bool threadConroller::getFreeThread()
return false;
}
bool threadConroller::addTaskFreeThread(detData* data)
bool threadManager::addTaskFreeThread(detData* data)
{
#if 0
int index = 0;
@@ -172,7 +172,7 @@ bool threadConroller::addTaskFreeThread(detData* data)
return false;
}
threadConroller::~threadConroller()
threadManager::~threadManager()
{
for (auto thread : algoThreadList)
{