Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes

ASql::ConnectionPar< T > Class Template Reference

Defines some functions and data types shared between ASql engines. More...

#include <asql.hpp>

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

List of all members.

Classes

class  Queries
 Thread safe queue of queries. More...
struct  QuerySet
class  SetCanceler
 Locks the mutex on a statement and set's the canceller to the queries canceller. More...

Public Member Functions

void start ()
 Start all threads of the handler.
void terminate ()
 Terminate all thread of the handler.
void queue (Transaction< T > &transaction)
 Queue up a transaction for completion.
void queue (T *const &statement, Query &query)

Static Public Attributes

static const bool s_false = false

Protected Member Functions

 ConnectionPar (const int maxThreads_)

Private Member Functions

void intHandler (const unsigned int id)
 Function that runs in threads.

Private Attributes

boost::scoped_array< Queriesqueries

Detailed Description

template<class T>
class ASql::ConnectionPar< T >

Defines some functions and data types shared between ASql engines.

Definition at line 1167 of file asql.hpp.


Constructor & Destructor Documentation

template<class T>
ASql::ConnectionPar< T >::ConnectionPar ( const int  maxThreads_ ) [inline, protected]

Definition at line 1201 of file asql.hpp.


Member Function Documentation

template<class T >
void ASql::ConnectionPar< T >::intHandler ( const unsigned int  id ) [private]
template<class T>
void ASql::ConnectionPar< T >::queue ( T *const &  statement,
Query query 
) [inline]

Definition at line 1347 of file asql.hpp.

template<class T>
void ASql::ConnectionPar< T >::queue ( Transaction< T > &  transaction )

Queue up a transaction for completion.

Definition at line 1364 of file asql.hpp.

References ASql::Transaction< T >::begin(), and ASql::Transaction< T >::end().

Referenced by ASql::MySQL::Statement::queue().

template<class T >
void ASql::ConnectionPar< T >::start (  )

Start all threads of the handler.

Definition at line 1235 of file asql.hpp.

template<class T >
void ASql::ConnectionPar< T >::terminate (  )

Terminate all thread of the handler.

Definition at line 1250 of file asql.hpp.


Member Data Documentation

template<class T>
boost::scoped_array<Queries> ASql::ConnectionPar< T >::queries [private]

Definition at line 1182 of file asql.hpp.

template<class T>
const bool ASql::ConnectionPar< T >::s_false = false [static]

Definition at line 1217 of file asql.hpp.

Referenced by ASql::ConnectionPar< T >::SetCanceler::~SetCanceler().


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