[OpenJDK 2D-Dev] Question regarding surface locking
linuxhippy at gmail.com
Tue Mar 24 13:13:59 PDT 2009
> Is it really necessary to lock on a global lock, wouldn't a
> lock on the surface do the same job? I'm thinking when you have
> animations on several surfaces in parallel (like in the Java2Demo), it
> might be more efficient to have a finer grained lock. Or are there other
> pitfalls attached here?
I am not really sure, but as far as I know the global lock also
protects libX11 from concurrent access.
More information about the 2d-dev