From 1d42e7cc891403b5f20eb67bc08f23a667019402 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 24 Aug 2011 13:42:04 +0200 Subject: Add support for transaction multiplexing Also delay getting a connection until after we do all the sanity checks (e.g., that there is no active transaction). Otherwise we are running risk of getting blocked rather than throwing an exception. --- odb/tracer/transaction-impl.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'odb/tracer/transaction-impl.hxx') diff --git a/odb/tracer/transaction-impl.hxx b/odb/tracer/transaction-impl.hxx index f926183..b92797b 100644 --- a/odb/tracer/transaction-impl.hxx +++ b/odb/tracer/transaction-impl.hxx @@ -20,18 +20,19 @@ namespace odb { class LIBODB_TRACER_EXPORT transaction_impl: public odb::transaction_impl { - protected: - friend class connection; - friend class transaction; - + public: typedef tracer::database database_type; + transaction_impl (database_type&); transaction_impl (connection_ptr); virtual ~transaction_impl (); virtual void + start (); + + virtual void commit (); virtual void -- cgit v1.1