On 8/2/07, alimli <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I use IoSession.get/setAttribute to store session specific information. I
> wonder if I have to perform this operations in a
> synchronized (<some IoSession Instance>) { } block? Is locking IoSession is
> right or do I have to lock some other object?

A lock is acquired while you access session attributes internally.
The lock object is not an IoSession instance.  If you need more
complex locking, you have to lock the accessing code block with your
lock.

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to