SQL Connection.
More...
#include <asql.hpp>
List of all members.
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_) |
Detailed Description
SQL Connection.
Definition at line 112 of file asql.hpp.
Constructor & Destructor Documentation
ASql::Connection::Connection |
( |
const int |
maxThreads_ | ) |
|
|
inlineprotected |
Member Function Documentation
virtual void ASql::Connection::commit |
( |
const unsigned int |
thread = 0 | ) |
|
|
protectedpure virtual |
virtual void ASql::Connection::rollback |
( |
const unsigned int |
thread = 0 | ) |
|
|
protectedpure virtual |
bool ASql::Connection::running |
( |
| ) |
const |
|
inline |
Return true if the handler is running.
Definition at line 119 of file asql.hpp.
References m_threads.
int ASql::Connection::threads |
( |
| ) |
const |
|
inline |
Member Data Documentation
int ASql::Connection::m_threads |
|
protected |
const int ASql::Connection::maxThreads |
|
protected |
Number of threads to pool for simultaneous queries.
Definition at line 124 of file asql.hpp.
Referenced by threads().
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 |
The documentation for this class was generated from the following file: