|
@@ -193,12 +193,30 @@ void VideoThread(int n)
|
|
|
}
|
|
|
|
|
|
|
|
|
+#include <thread>
|
|
|
+
|
|
|
+void testthread()
|
|
|
+{
|
|
|
+ void * mpx = iv::modulecomm::RegisterSend("test121",10000000,1);
|
|
|
+ char * str = new char[10000000];
|
|
|
+ while(1)
|
|
|
+ {
|
|
|
+ iv::modulecomm::ModuleSendMsg(mpx,str,9000000);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
showversion("driver_camera_usb");
|
|
|
QCoreApplication a(argc, argv);
|
|
|
|
|
|
+ std::thread * pthread = new std::thread(testthread);
|
|
|
+ return a.exec();
|
|
|
+
|
|
|
QString strpath = QCoreApplication::applicationDirPath();
|
|
|
// QString apppath = strpath;
|
|
|
if(argc < 2)
|