Boost logo

Boost :

Subject: Re: [boost] [transact] Handling with user exceptions
From: strasser_at_[hidden]
Date: 2010-03-07 13:38:42


Zitat von strasser_at_[hidden]:
> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk