houxiao
2017-01-11 97dbd476ee99f36286cd866b2208ceead3019b31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _FACEDBPOOL_H_
#define _FACEDBPOOL_H_
 
#include "faceAPI.h"
 
class FaceDBPool
{
public:
    FaceDBPool();
    ~FaceDBPool();
    
    void manage(int dbid, faceAPI* db);
    void unmanage(int dbid);
    
    faceAPI* 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