소스 검색

change RemoteCtrl_Thread.

yuchuli 3 년 전
부모
커밋
f86c6c8d0d
2개의 변경된 파일19개의 추가작업 그리고 1개의 파일을 삭제
  1. 18 0
      src/driver/driver_camera_usb/main.cpp
  2. 1 1
      src/driver/driver_cloud_grpc_pc_thread/grpcpc.h

+ 18 - 0
src/driver/driver_camera_usb/main.cpp

@@ -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)

+ 1 - 1
src/driver/driver_cloud_grpc_pc_thread/grpcpc.h

@@ -66,7 +66,7 @@ private:
     void run();
 
 private:
-    std::string gstrserverip = "111.33.136.149";//"127.0.0.1";// "140.143.237.38";
+    std::string gstrserverip = "111.33.136.149";//"192.168.14.98";//"127.0.0.1";// "140.143.237.38";
     std::string gstrserverport = "50051";//"9000";
     std::string gstruploadinterval = "100";
     void * gpa;