From 0a397f834382491316d9efe993ebb89757c000b9 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 28 四月 2017 16:16:09 +0800
Subject: [PATCH]
---
RtspFace/SensetimeFaceAPIWrapper/src/FaceDBPool.h | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/RtspFace/SensetimeFaceAPIWrapper/src/FaceDBPool.h b/RtspFace/SensetimeFaceAPIWrapper/src/FaceDBPool.h
index d4bfdcd..f56c5a3 100644
--- a/RtspFace/SensetimeFaceAPIWrapper/src/FaceDBPool.h
+++ b/RtspFace/SensetimeFaceAPIWrapper/src/FaceDBPool.h
@@ -1,4 +1,26 @@
#ifndef _FACEDBPOOL_H_
#define _FACEDBPOOL_H_
+#include "faceAPI.h"
+
+class FaceDBPool
+{
+public:
+ FaceDBPool();
+ ~FaceDBPool();
+
+ void manage(int dbid, FaceDB* db);
+ void unmanage(int dbid);
+
+ FaceDB* get_free(int dbid);
+ void release(int dbid);
+
+ bool wait_free() { return true; }
+ bool notify_free() { return true; }
+
+private:
+ void* pool_mutex;
+ void* face_db_map;
+};
+
#endif
--
Gitblit v1.8.0