aboutsummaryrefslogtreecommitdiff
path: root/odb/tracer/transaction.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-24 13:42:04 +0200
commit1d42e7cc891403b5f20eb67bc08f23a667019402 (patch)
tree8cad3b525097d47b933e5f10c11ed83c6d661895 /odb/tracer/transaction.hxx
parent148e68c83c45bb374785306476351181e00f0a09 (diff)
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.
Diffstat (limited to 'odb/tracer/transaction.hxx')
-rw-r--r--odb/tracer/transaction.hxx5
1 files changed, 5 insertions, 0 deletions
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 ();