[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: [OpenJDK 2D-Dev] Question regarding surface locking
From: roman () kennke ! org (Roman Kennke)
Date: 2009-03-24 20:22:28
Message-ID: 1237926148.20406.14.camel () saturn
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic