Dmirty raised an interesting question in our configuration properties.
We have so many configuration properties - should each propery declared as volatile? Would there be more efficient way than doing so?
On Thu, 08 May 2008 16:43:51 +0900, Дмитрий Батрак <[EMAIL PROTECTED]> wrote:
As mentioned in API documentation (I'm talking about MINA-1.1.7), IoSession instances are supposed to be thread-safe. But access to variables idleTimeForRead, idleTimeForWrite and idleTimeForBoth in BaseIoSession class is performed without any synchronization. So, it seems that altering the idle time from any thread other than the processor thread isn't guaranteed to be visible by the processor thread. Shouldn't these variables be made volatile, or am I missing some point? Best regards, Dmitry Batrak
-- Trustin Lee - Principal Software Engineer, JBoss, Red Hat -- what we call human nature is actually human habit -- http://gleamynode.net/
