Yeah right, I just answered this myself after I wrote it. At least for XPixmaps this makes sense. Could be optimized for Shm and DGA I suppose, but that would complicate stuff (even more), unless the implementation gets split up in XPixmapSurfaceData, ShmSurfaceData and DGASurfaceData or so.
/Roman Am Dienstag, den 24.03.2009, 16:13 -0400 schrieb Clemens Eisserer: > 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
