
7 Mar
2010
7 Mar
'10
6:38 p.m.
Zitat von strasser@uni-bremen.de:
if you want to discuss again if the macros should commit or roll back on user exceptions that's another discussion
to this point, we've discussed it before and I thought we agreed to the following: abort on exception, default-behaviour: transaction{ throw my_exc(); //rolls back } commit on exception: transaction{ transaction_manager::current_transaction().commit(); // (1) throw my_exc(); //does not roll back } not agreed upon? (1) if you want, we can introduce a "keyword" for commit and throw, just like intel does for abort and throw.