On Wed, 2015-11-25 at 11:05 -0800, Jason Ekstrand wrote:
> Right.  I didn't pay that much attention to the exact implementation.
> But we could do something like.
> 
> atomic int global_iteration_atomic = 0;
> 
> const int global_iteration = atomic_inc(global_iteration_atomic);
> 
> // use global_iteration everywhere
> 
> That wouldn't have the threading issues.  (Note, the above is pseudo-
> code)

I'll go with this solution, and it is more similar to the one I had in
mind.

Thanks.

        J.A.

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to