made server threaded, fixing issue #51

This commit is contained in:
Max-Wilhelm Bruker 2012-05-28 18:51:58 +02:00
parent b328c1ed4d
commit 520300dc86
14 changed files with 108 additions and 37 deletions

View file

@ -0,0 +1,15 @@
#include "servatrice_connection_pool.h"
#include "servatrice_database_interface.h"
#include <QThread>
Servatrice_ConnectionPool::Servatrice_ConnectionPool(Servatrice_DatabaseInterface *_databaseInterface)
: databaseInterface(_databaseInterface),
clientCount(0)
{
}
Servatrice_ConnectionPool::~Servatrice_ConnectionPool()
{
delete databaseInterface;
thread()->quit();
}