Josh Richmond wrote:
>Since I want the entire set of transforms (6 or 7) being changed "at once" I think I
>think to synchronize before the loop and not just before each set. Since the method
>does nothing more than the loop, I figured it would be fine just to synchronize the
>entire method.
>
Josh,
If I remember correctly, synchronizing the entire method will prevent
any other object from entering any other synchronized segment of code.
In contrast, using a "synchronized(jointTransform) { someBlockOfCode;
}" pattern will only block other objects also synchronized on
"jointTransform." This may help you avoid a race condition, if that's
what bogging down you code. If you ever figure this out I'd be curious
to know what the problem was.
-Todd
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".