]> mj.ucw.cz Git - libucw.git/commit
Trans: New semantics of exceptions
authorMartin Mares <mj@ucw.cz>
Sun, 17 Apr 2011 17:06:54 +0000 (19:06 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 17 Apr 2011 17:06:54 +0000 (19:06 +0200)
commit349d89dca4a4ab2420b57c8a0f1d233f3af4cd1c
tree427bd30635cbb88ee63c6a2c4d48b6ef8ef33aeb
parentcdaca8c440aae7016d460d332e6016918a854663
Trans: New semantics of exceptions

Changed exception propagation rules according to the new semantics
documented in ucw/doc/trans.txt, which is based on transaction folding.

We avoid the (partially implemented) exception pool altogether, all
exceptions are just allocated from the pool of the current transaction,
and clever re-throwing rules make the pools last as long as they should.

Also, the current exception is kept track of in the current transaction
instead of the thread context.
ucw/threads.h
ucw/trans.c
ucw/trans.h