[jboss-dev-forums] [JBoss Transactions Development] - Re: Remote Txn Inflow: Synchronizations

David Lloyd do-not-reply at jboss.com
Fri Sep 30 01:59:59 EDT 2011


David Lloyd [http://community.jboss.org/people/dmlloyd] created the discussion

"Re: Remote Txn Inflow: Synchronizations"

To view the discussion, visit: http://community.jboss.org/message/629477#629477

--------------------------------------------------------------
This is gonna bug me until I fix it...
> David Lloyd wrote:
> [...]
> You could however use integer packing to make more room; in such a scheme, the bqual bits which identify the node would still be an integer sequence but would work like this:
> 
> * Values 0000-0111 (0-7): resources 0-7, length is 4 bits
> * Values 1000 0000-1011 1111 (0x80-0xBF): resources 8-71, length is 8 bits
> * Values 1100 0000 0000-1101 1111 1111 (0xC00-0xDFF): resources 72-583, length is 12 bits
> * etc.
> 
For this to work you'd have to treat 0000 as a special padding sequence for the case where only one nybble of the last byte is used.  Thus giving:
* 0000: padding
* 0001-0111: resources 0-6
* 1000 0000-1011 1111: resources 7-70
* 1100 0000 0000-1101 1111 1111: resources 71-582
* etc.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/629477#629477]

Start a new discussion in JBoss Transactions Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110930/bb732d35/attachment.html 


More information about the jboss-dev-forums mailing list