[OpenJDK 2D-Dev] Question regarding surface locking

Clemens Eisserer linuxhippy at gmail.com
Tue Mar 24 20:13:59 UTC 2009

Hi Roman,

> 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.

- Clemens

More information about the 2d-dev mailing list