fastcgi++
|
SQL Connection. More...
#include <asql.hpp>
Public Member Functions | |
int | threads () const |
Returns the number of threads. | |
bool | running () const |
Return true if the handler is running. | |
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 |
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.
bool ASql::Connection::running | ( | ) | const [inline] |
int ASql::Connection::threads | ( | ) | const [inline] |
Returns the number of threads.
Definition at line 116 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] |