diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-24 13:42:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-24 13:42:04 +0200 |
commit | 1d42e7cc891403b5f20eb67bc08f23a667019402 (patch) | |
tree | 8cad3b525097d47b933e5f10c11ed83c6d661895 /odb/tracer/transaction.ixx | |
parent | 148e68c83c45bb374785306476351181e00f0a09 (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.ixx')
-rw-r--r-- | odb/tracer/transaction.ixx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/tracer/transaction.ixx b/odb/tracer/transaction.ixx index a36c426..d936e8d 100644 --- a/odb/tracer/transaction.ixx +++ b/odb/tracer/transaction.ixx @@ -31,5 +31,11 @@ namespace odb return static_cast<transaction_impl&> ( odb::transaction::implementation ()); } + + inline void transaction:: + current (transaction& t) + { + odb::transaction::current (t); + } } } |