fastcgi++
Public Member Functions | Protected Member Functions | Protected Attributes
ASql::Connection Class Reference

SQL Connection. More...

#include <asql.hpp>

Inheritance diagram for ASql::Connection:
ASql::ConnectionPar< T > ASql::ConnectionPar< MySQL::Statement > ASql::MySQL::Connection

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_)

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

Detailed Description

SQL Connection.

Definition at line 112 of file asql.hpp.


Constructor & Destructor Documentation

ASql::Connection::Connection ( const int  maxThreads_)
inlineprotected

Reimplemented in ASql::MySQL::Connection.

Definition at line 137 of file asql.hpp.


Member Function Documentation

virtual void ASql::Connection::commit ( const unsigned int  thread = 0)
protectedpure virtual

Implemented in ASql::MySQL::Connection.

virtual void ASql::Connection::rollback ( const unsigned int  thread = 0)
protectedpure virtual

Implemented in ASql::MySQL::Connection.

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

Returns the number of threads.

Definition at line 116 of file asql.hpp.

References maxThreads.

Referenced by ASql::MySQL::Connection::connect().


Member Data Documentation

int ASql::Connection::m_threads
protected

Definition at line 127 of file asql.hpp.

Referenced by running().

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

Definition at line 135 of file asql.hpp.

boost::mutex ASql::Connection::terminateMutex
protected

Definition at line 134 of file asql.hpp.

boost::condition_variable ASql::Connection::threadsChanged
protected

Definition at line 126 of file asql.hpp.

boost::mutex ASql::Connection::threadsMutex
protected

Definition at line 125 of file asql.hpp.

boost::scoped_array<boost::condition_variable> ASql::Connection::wakeUp
protected

Definition at line 132 of file asql.hpp.


The documentation for this class was generated from the following file: