Re: [LIXA-general] LIXA XTA with transactions spanning threads
LIXA, LIbre XA, is a free and open source XA transaction manager
Brought to you by:
tiian
|
From: <lix...@li...> - 2020-10-07 06:09:47
|
Dear Rowland,it's exactly as you described.Just pay attention that with XTA, a single thread at a time can manage a transaction: the methods/functions that manage the references are re-entrant, but not thread safe. In other terms, if two threads must deal with the same references, it's your responsibility to synchronize them and avoid that two threads use the same references in parallel.
Kind RegardsCh.F.
---
Il mercoledì 7 ottobre 2020, 05:02:42 CEST, lix...@li... <lix...@li...> ha scritto:
I have been working to integrate LIXA into a transaction monitor for the Pony programming language. My original plan was to use the TX interface, but I believe that this interface is limited to calling tx_open() and tx_close() on the same thread. This requirement would greatly reduce the flexibility and power of my transaction monitor, and would not take much advantage of the Pony actor model.
I think that if I instead use the XTA interface, I will no longer face this limitation, and as long as I pass transaction manager and transaction references around in a safe manner, I will be able to support as many threads as needed.
Please confirm if my understanding is correct.
LIXA looks like a really nice piece of work. I am really looking forward to digging more deeply into it.
--
Rowland E. SmithP: (862) 260-4163M: (201) 396-3842
_______________________________________________
Lixa-general mailing list
Lix...@li...
https://lists.sourceforge.net/lists/listinfo/lixa-general
|