From a2dfb4907fd11e0a64ba16419dce066509462297 Mon Sep 17 00:00:00 2001
From: pansen <pansen626@sina.com>
Date: 星期三, 06 三月 2019 10:04:45 +0800
Subject: [PATCH] 修改部分bug

---
 QiaoJiaSystem/VideoAnalysFromHC/BaiscSDKAnalysVideo.h |   54 +++++++++++++++++++++++++++---------------------------
 1 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/QiaoJiaSystem/VideoAnalysFromHC/BaiscSDKAnalysVideo.h b/QiaoJiaSystem/VideoAnalysFromHC/BaiscSDKAnalysVideo.h
index 622bc1e..991d212 100644
--- a/QiaoJiaSystem/VideoAnalysFromHC/BaiscSDKAnalysVideo.h
+++ b/QiaoJiaSystem/VideoAnalysFromHC/BaiscSDKAnalysVideo.h
@@ -23,38 +23,38 @@
     using TASK_FUNCTION = std::function<void(std::shared_ptr<finishSdkHdlManage> &, int)>;
 public:
     BaiscSDKAnalysVideo(TASK_FUNCTION task_f = nullptr) : m_task_function(task_f) {
-        resetFdfs();
-        {
-            std::thread httpServer([&]() {
-                HttpSrvRetRecieve httpSrvRetRecieve("0.0.0.0", 9090, 1);
-                httpSrvRetRecieve.setInfo("^/resetFdfs$", "POST", std::bind(&BaiscSDKAnalysVideo::resetFdfs, this,
-                                                                            std::placeholders::_1,
-                                                                            std::placeholders::_2,
-                                                                            std::placeholders::_3));
-                httpSrvRetRecieve.start();
-                httpSrvRetRecieve.waitForShutDown();
-            });
-            httpServer.detach();
-        }
+//        resetFdfs();
+//        {
+//            std::thread httpServer([&]() {
+//                HttpSrvRetRecieve httpSrvRetRecieve("0.0.0.0", 9090, 1);
+//                httpSrvRetRecieve.setInfo("^/resetFdfs$", "POST", std::bind(&BaiscSDKAnalysVideo::resetFdfs, this,
+//                                                                            std::placeholders::_1,
+//                                                                            std::placeholders::_2,
+//                                                                            std::placeholders::_3));
+//                httpSrvRetRecieve.start();
+//                httpSrvRetRecieve.waitForShutDown();
+//            });
+//            httpServer.detach();
+//        }
     }
 
     ~BaiscSDKAnalysVideo() {
     }
 
-    std::string resetFdfs(std::string ip = "", unsigned int port = 0, std::string content = "") {
-
-        std::thread reset([&]() {
-            fdfsClient.rwLock.rdlock();
-            if (fdfsClient.fastFds != nullptr) {
-                delete fdfsClient.fastFds;
-            }
-            fdfsClient.fastFds = new FastFds("fastDfsClient.conf");
-            fdfsClient.rwLock.unlock();
-        });
-        reset.detach();
-
-        return "";
-    }
+//    std::string resetFdfs(std::string ip = "", unsigned int port = 0, std::string content = "") {
+//
+//        std::thread reset([&]() {
+//            fdfsClient.rwLock.rdlock();
+//            if (fdfsClient.fastFds != nullptr) {
+//                delete fdfsClient.fastFds;
+//            }
+//            fdfsClient.fastFds = new FastFds("fastDfsClient.conf");
+//            fdfsClient.rwLock.unlock();
+//        });
+//        reset.detach();
+//
+//        return "";
+//    }
 
 private:
     virtual void doFunc(std::shared_ptr<getsdkHdlManage> spPacket) {

--
Gitblit v1.8.0