SQL Connection. More...
#include <asql.hpp>
Public Member Functions | |
int | threads () const |
Protected Member Functions | |
virtual void | commit (const unsigned int thread=0)=0 |
virtual void | rollback (const unsigned int thread=0)=0 |
Connection (const int maxThreads_) | |
Protected Attributes | |
const int | maxThreads |
Number of threads to pool for simultaneous queries. | |
boost::mutex | threadsMutex |
boost::condition_variable | threadsChanged |
int | m_threads |
boost::scoped_array < boost::condition_variable > | wakeUp |
boost::mutex | terminateMutex |
bool | terminateBool |
SQL Connection.
Definition at line 1140 of file asql.hpp.
ASql::Connection::Connection | ( | const int | maxThreads_ ) | [inline, protected] |
Reimplemented in ASql::MySQL::Connection.
virtual void ASql::Connection::commit | ( | const unsigned int | thread = 0 ) |
[protected, pure virtual] |
Implemented in ASql::MySQL::Connection.
virtual void ASql::Connection::rollback | ( | const unsigned int | thread = 0 ) |
[protected, pure virtual] |
Implemented in ASql::MySQL::Connection.
int ASql::Connection::threads | ( | ) | const [inline] |
Definition at line 1143 of file asql.hpp.
References maxThreads.
Referenced by ASql::MySQL::Connection::connect().
int ASql::Connection::m_threads [protected] |
const int ASql::Connection::maxThreads [protected] |
bool ASql::Connection::terminateBool [protected] |
boost::mutex ASql::Connection::terminateMutex [protected] |
boost::condition_variable ASql::Connection::threadsChanged [protected] |
boost::mutex ASql::Connection::threadsMutex [protected] |
boost::scoped_array<boost::condition_variable> ASql::Connection::wakeUp [protected] |