Hi,
I am currently trying to postpone a transaction commit and “hibernate its state”, so I can put it in a collection (for example) and commit it at a later time.
From the
high level, I am trying to complete the work in block
scala.concurrent.stm.ccstm.InTxnImpl#runBlock(block)
but postpone the commit attempt
scala.concurrent.stm.ccstm.InTxnImpl#topLevelComplete
The final milestone would be to have a number of such completed, but not committed transactions in a collection, and then, at some later time, fetch them from that collection (possibly out of order) and try to commit.
I have not yet had the time to go through the specifics of your (well commented!) library, but the best candidate for “hibernation” is scala.concurrent.stm.ccstm.TxnLevelImpl. scala.concurrent.stm.ccstm.InTxnImpl looks like an thread local executor of TxnLevelImpl's to me, so it would not make much sense to mess with this class (right?)
Could you, perhaps, give me some hints as to how I should go about implementing my idea with your library?
I would very much appreciate your response!
yarco;)
yarco;)
--
---
You received this message because you are subscribed to the Google Groups "Scala STM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-stm-expert-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.