Jon
Mon Nov 22 08:17:08 CST 2004
Cole Shelton <scolemann@_NO_SPAM_yahoo.com> wrote:
> If an overloaded operator method contains multiple lines of code does it
> need to be synchronized at the class level or is it inherently thread safe?
There's nothing inherently thread-safe about operators, any more than
there is with any other method. That doesn't mean it needs to be
synchronized at the class level though - as ever, it depends on the
usage and any number of other things. How thread-safe you make your
classes is up to you.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too