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.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'odb/tracer/transaction.hxx') diff --git a/odb/tracer/transaction.hxx b/odb/tracer/transaction.hxx index 0dbc366..b65903d 100644 --- a/odb/tracer/transaction.hxx +++ b/odb/tracer/transaction.hxx @@ -38,6 +38,11 @@ namespace odb static transaction& current (); + // Set the current thread's transaction. + // + static void + current (transaction&); + public: transaction_impl& implementation (); -- cgit v1.1