From a76a02e428c1ca8ce56289eac7d316c22aca8aa2 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期二, 25 四月 2017 15:16:42 +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