Fixed frame memory management bug. Added worker thread sleep.

This commit is contained in:
Sam Dieck
2017-11-29 01:02:44 -06:00
parent b4d3c519ff
commit 52e9316afa

View File

@@ -309,6 +309,7 @@ void processingThread(void* arg)
writeToQueue(response);
}
usleep(10000);
}
}
@@ -343,7 +344,7 @@ void streamRecognitionThread(void* arg)
if (response != -1) {
if (framesQueue.empty()) {
framesQueue.push(frame);
framesQueue.push(frame.clone());
}
}