Enlarge the SQLite database cache intelligently.

This commit is contained in:
JoelKatz
2013-03-19 23:04:47 -07:00
parent d5a2c96907
commit 5494bc3158
8 changed files with 39 additions and 10 deletions

View File

@@ -36,12 +36,14 @@ class DatabaseCon
protected:
Database* mDatabase;
boost::recursive_mutex mLock;
static int sCount;
public:
DatabaseCon(const std::string& name, const char *initString[], int countInit);
~DatabaseCon();
Database* getDB() { return mDatabase; }
boost::recursive_mutex& getDBLock() { return mLock; }
Database* getDB() { return mDatabase; }
boost::recursive_mutex& getDBLock() { return mLock; }
static int getCount() { return sCount; }
};
class Application