[jcifs] Re: Potential concurrency problem

Ronny Schuetz Usenet.r96 at gishpuppy.com
Wed Oct 1 08:22:12 GMT 2008


Michael B Allen wrote:

>> Mhm, I usually tend to synchronize as close as possible to the place
>> where the variable is changed.
> 
> There is no correlation between correctly synchronizing access to
> shared variables and their proximity.

But it helps to make the code clearer and avoids future errors in case
the methods using the variable are called from additional places. I
don't want to spend my time discussing that. I don't care how the issue
gets addressed.

Ronny



More information about the jcifs mailing list