[Mesa-dev] [PATCH 1/2] mesa: Avoid ABA problem on buffer object bind.
Brian Paul
brianp at vmware.com
Sun Oct 23 08:53:53 PDT 2011
On 10/22/2011 04:57 AM, Mathias Fröhlich wrote:
>
> Hi,
>
> Make sure we do not run into the classic ABA problem on buffer object bind,
> reusing this name and may be never rebind since we get an new name
> that was just deleted and never rebound in between.
> The explicit rebinding to the debault object in the current context
> prevents the above in the current context, but an other context
> sharing the same objects might suffer from this problem.
>
> Please review.
Looks good. Just minor things:
In other places where we have a field like this it's called DeletePending.
The comment you added in _mesa_DeleteBuffersARB() is a bit hard to
understand. If you need help, I could rewrite it for you.
-Brian
More information about the mesa-dev
mailing list